How to propagate the JIRA issue ID in a Jenkins pipeline?

Rajat Sud February 7, 2020

We have a Jenkins multi-stage pipeline that is triggered with a commit message containing the JIRA ID. 

Using the JIRA plugin (https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Plugin), we're able to successfully create a comment about the status of the job.

However, when the 2nd phase of the pipeline is triggered, we appear to be losing the ability to add a comment back into the JIRA issue.

For example here is our pipeline

1. Commit (with commit comment "PROJ-111: Initial commit") and CI build is triggered

2. Deploy to Dev (successfully sent commit comment to PROJ-111)

3. Deploy to QA (unable to send commit comment  to PROJ-111)

Do I need to add the "JIRA: Update relevant issues" post-build step to every phase of the pipeline?

1 answer

0 votes
prabha vk December 7, 2020

any updates on this

Suggest an answer

Log in or Sign up to answer