Trigger Remote Jenkins build on status transition

Ankush Das May 15, 2023

Require some help to trigger remote Jenkins build job from Jira cloud. From transition post function of workflow tried to call Jenkins API(working , tested via Postman) using Script runner for cloud plugin but unfortunately it is not supporting the call to Jenkins API.

Any fix for the above or any alternative solution will be greatly appreciated.

 

Sample URL : http://localhost:2030/job/TestBatchScript/buildWithParameters?token=Testtt&BRANCH_NAME=sample1&COMMENTS=Test

1 answer

1 accepted

0 votes
Answer accepted
Dam
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2023

Hi @Ankush Das 

You should use Jenkins app and link your Jenkins with your Atlassian Cloud site properly... https://marketplace.atlassian.com/apps/1227791/jenkins-for-jira-official?tab=overview&hosting=cloud

There is an advanced configs and docs with the app: https://support.atlassian.com/jira-cloud-administration/docs/integrate-with-jenkins/

I hope this help. 
Dam.

Ankush Das May 15, 2023

Thanks for the information , will check out the steps posted.

Suggest an answer

Log in or Sign up to answer