Skip to content

Instantly share code, notes, and snippets.

@wallyatkins
Last active June 3, 2026 14:37
Show Gist options
  • Select an option

  • Save wallyatkins/5678363d66f7dda542d5a6946b2b149d to your computer and use it in GitHub Desktop.

Select an option

Save wallyatkins/5678363d66f7dda542d5a6946b2b149d to your computer and use it in GitHub Desktop.
Trigger Jenkins Build From Jira - Send Issue Key and ID to Jenkins - Retrieve Jira Dev Status

The idea behind this gist is to capture the concept of utilizing the Jira Project Automation to create a testable deployment. Here are the general steps:

  • Jira: when an issue is transition to a "TESTING" status its triggers a build of the related git repository and branch
  • Jenkins: receives a parameter for the Jira ticket ID and retrieves the ticket's dev-status then builds and pushes an image and lastly updates a Helm Chart
  • RKE2: Rancher environment monitors git repository containing the Helm Chart to pull new image for application testable deployment
  • Email: Testers are notified that testable deployment is available

Jira - Issue Transitioned

Webhook URL

https://{JENKINS_HOST}/job/{JOB_NAME}/job/{SUB_JOB_NAME}/buildWithParameters?ticket_key={{issue.key}}&ticket_id={{issue.id}}

Headers

Name: Authorization

Value: Basic base64EncodedCredentials

HTTP Method

POST

Webhook Body

Empty

Jenkins - Build Job

https://{JIRA_HOST}/rest/dev-status/1.0/issue/detail?issueId=$params_ticket_id&applicationType=stash&dataType=pullrequest"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment