简体   繁体   中英

Trigger Jenkins job from Jira on demand

Jenkins-Jira plugin, Is there a way to configure the plugin to trigger a build on demand?.

I am currently investigating on integrating Jenkins and Jira where a automated test case can be triggered from Jira and the results from Jenkins will be posted to Jira as a comment. (But the above trigger should be on a case basis and should not be triggered with status change to Jira ticket)

I have evaluated the scenario using Zapier (Trial version) couldn't get it as needed. Any suggestions are welcome

JIRA Trigger Plugin is capable of triggering a job based on a comment regex pattern ie "Ready for testing!", etc.

JIRA Issue Updater Plugin is capable of adding a comment to JIRA. You can post a link back to your Jenkins test result. When your job is successfully triggered by JIRA Trigger Plugin, you will receive an environment variable JIRA_ISSUE_KEY that can then be used in the JQL for selecting issues to be updated field. Do note that I have not tested this second part.

Add one of the following links:

  • JENKINS_URL/job/JOB_NAME/build
  • JENKINS_URL/job/JOB_NAME/buildWithParameters?...

(see JENKINS_URL/job/JOB_NAME/api for full documentation)

to:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM