Passing values between promotions in Jenkins

Viewed 339

I have a Jenkins job with two promotions steps. The first promotion creates a Jira ticket. The 2nd promotion needs to close the Jira ticket created in the first promotion. How can I pass the Jira ticket information (ie key/id) from the first promotion to the second promotion?

2 Answers

Possibly the following contains the information you're after:

  • ☑ Promote builds when...

    • Promotion process

      • Actions

        • Add action

          • JIRA: Add related environment variables to build →

            Extracts JIRA information for the build to environment variables.
            Available variables:
             

            • JIRA_ISSUES - A comma separated list of issues which are referenced in the version control system changelog
Related