How to use the 'Issue attribute path' in the parameter mapping of jenkins-trigger-plugin

折月煮酒 提交于 2019-12-25 07:59:07

问题


I am willing to trigger my Jenkins job based on status change event from a JIRA issue. I am able to do it using jenkins-trigger-plugin. However I wish to get some more information about the issue like the description of the issue etc. I could see an environment variable named 'JIRA_ISSUE_KEY' but it gives me the key and nothing else.


回答1:


As of the current release, the issue attribute path is currently resolved from this Issue object. All of jira-trigger-plugin configuration is documented in Jenkins help buttons, which is viewable in Jenkins job configuration.

description for example is retrievable via description path (which would call issue.getDescription() essentially).



来源:https://stackoverflow.com/questions/40590979/how-to-use-the-issue-attribute-path-in-the-parameter-mapping-of-jenkins-trigge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!