2

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?

Ivory Micky
  • 461
  • 1
  • 5
  • 19

2 Answers2

0

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
Gerold Broser
  • 11,355
  • 4
  • 36
  • 85
0

I was able to resolve this issue by using the Copy files back to the job's workspace on the master node plugin in the first promotion step, and then use the Copy artifacts from another project plugin in the second promotion step to get those files.

Ivory Micky
  • 461
  • 1
  • 5
  • 19