Need help to resume paused Jenkins pipeline when JIRA issue transitioned

Anil Kumar Patcha August 24, 2018

Hi,

We would like to resume paused Jenkins pipeline when JIRA issue is transitioned. Below are the details.

Let's say, we have a JIRA workflow that has below transitions.

To Do -> Dev -> QA -> Stage -> Prod

And Jenkinsfile contains following stages: Dev, QA, Stage and Prod. 

While Jenkins is executing Dev stage, it should create a JIRA issue and then Issue to be transitioned to "Dev" in JIRA.  When it enters to QA stage, it should pause the pipeline and waiting for the JIRA issue to be transitioned to "QA". Once JIRA issue is transitioned to "QA", JIRA should resume paused Jenkins pipeline.

We are able to create JIRA Issue and able to transition it to "Dev". But unable to find a way to resume the pipeline when JIRA issue is transitioned to "QA".

Please help.

1 answer

0 votes
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2022

Scriptrunner would be an answer here.  I've done this contact me if you would like to see some sample code.

Suggest an answer

Log in or Sign up to answer