问题
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