All Projects → jenkinsci → jira-trigger-plugin

jenkinsci / jira-trigger-plugin

Licence: MIT license
Triggers a build when a certain condition is matched in JIRA

Programming Languages

groovy
2714 projects
HTML
75241 projects

Projects that are alternatives of or similar to jira-trigger-plugin

bitbucket-push-and-pull-request-plugin
Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.
Stars: ✭ 47 (-58.04%)
Mutual labels:  jenkins, trigger
Real Time Social Media Mining
DevOps pipeline for Real Time Social/Web Mining
Stars: ✭ 22 (-80.36%)
Mutual labels:  jenkins
aqua-microscanner-plugin
Enables scanning of docker builds in Jenkins for OS package vulnerabilities.
Stars: ✭ 37 (-66.96%)
Mutual labels:  jenkins
kubetools
Kubetools - Curated List of Kubernetes Tools
Stars: ✭ 674 (+501.79%)
Mutual labels:  jenkins
jenni
👩‍💻 Jenkins Personal Assistant - CLI to interact with Jenkins server
Stars: ✭ 40 (-64.29%)
Mutual labels:  jenkins
aliyun-oss-uploader-plugin
Aliyun/AliCloud OSS uploader
Stars: ✭ 26 (-76.79%)
Mutual labels:  jenkins
ebook-continuous-delivery-with-kubernetes-and-jenkins
Continuous Delivery for Java Apps: Build a CD Pipeline Step by Step Using Kubernetes, Docker, Vagrant, Jenkins, Spring, Maven and Artifactory
Stars: ✭ 39 (-65.18%)
Mutual labels:  jenkins
intelirest-cli
A cli interpreter for intelliJ .http files
Stars: ✭ 23 (-79.46%)
Mutual labels:  jenkins
click-image-play-youtube-video
Jquery based plugin to help render and play youtube embed videos on an modal/overlay in your web apps. Responsive build.
Stars: ✭ 19 (-83.04%)
Mutual labels:  trigger
ioBroker.smartcontrol
Control devices smarter: by grouping, including triggers like motion, opening window, etc. and set target devices accordingly
Stars: ✭ 20 (-82.14%)
Mutual labels:  trigger
docker-jenkins-dsl-ready
Docker image providing Jenkins ready to go with the DSL and JCasC plugins
Stars: ✭ 36 (-67.86%)
Mutual labels:  jenkins
audit-log-plugin
Audit logging plugin for Jenkins based on Apache Log4j Audit
Stars: ✭ 19 (-83.04%)
Mutual labels:  jenkins
Ext.ux.form.trigger.Clear
Ext JS 5 trigger implementation. Adds a clear icon to textfields and comboboxes
Stars: ✭ 22 (-80.36%)
Mutual labels:  trigger
artifact-promotion-plugin
A simple Jenkins plugin to promote artifacts.
Stars: ✭ 29 (-74.11%)
Mutual labels:  jenkins
cloud-s4-sdk-pipeline
The Cloud SDK pipeline uses the Cloud SDK continuous delivery server for building, checking, and deploying extension applications. Projects based on the SAP Cloud SDK archetype will automatically use this pipeline.
Stars: ✭ 65 (-41.96%)
Mutual labels:  jenkins
librecores-ci-jenkins-server
LibreCores Continuous Integration
Stars: ✭ 36 (-67.86%)
Mutual labels:  jenkins
jenkins-pipeline
Jenkins Pipeline Shared Library
Stars: ✭ 16 (-85.71%)
Mutual labels:  jenkins
stateless
Finite State Machine porting from Stateless C#
Stars: ✭ 25 (-77.68%)
Mutual labels:  trigger
cjp-demo-environment
CloudBees CI Demo based on Docker Compose
Stars: ✭ 23 (-79.46%)
Mutual labels:  jenkins
black-postoffice
[무신사 신입] 익명으로 편하게 고민, 일상을 공유하는 소셜 네트워크 서비스입니다.
Stars: ✭ 31 (-72.32%)
Mutual labels:  jenkins

JIRA Trigger Plugin

All Contributors

Build Status Java 1.8

This plugin is published through the Jenkins official plugin center.

Please consider starring the project to show your ❤️ and support.

Features

  • Triggers a build when a comment is added to JIRA
  • Triggers a build when an issue is updated in JIRA
  • Transforms JIRA Webhook POST data to Jenkins parameters
  • Transforms JIRA standard custom fields to Jenkins parameters (See CustomFieldParameterResolverTest for the full list of supported custom field types)
  • Reply back to JIRA for scheduled builds
  • Sets JIRA information as environment variables to the triggered build

This plugin has been tested against JIRA 7.0.0, although theoretically it should work with older version of JIRA as long as it supports the webhook type required (see Setup section below).

Check src/test/groovy/*AcceptanceTest to see how these features are expected to behave.

Getting help

Setup

Add new JIRA webhook (One time)

  1. Go to JIRA > Cog > System > Advanced > WebHooks (Requires admin permission)
  2. Create a new Webhook
  3. Set URL to: ${Jenkins URL}/jira-trigger-webhook-receiver/ e.g. http://localhost:8080/jenkins/jira-trigger-webhook-receiver/
  4. Enable issue updated event
  5. If you are on JIRA Cloud, enable comment created event
  6. Do not check Exclude body as this plugin requires the JSON to operate
  7. Save!

Jenkins global configuration (One time)

This configuration is crucial, especially for JQL filter usage.

  1. Go to Jenkins global configuration (${Jenkins URL}/configure)
  2. Configure JIRA Trigger Configuration

Job configuration

New triggers will be made available after you have successfully install this plugin from Jenkins plugin center. More in depth documentation about how you can configure the job are documented in the help files. Be sure to hit those question mark buttons in Jenkins configuration page!

The configuration of Pipeline jobs are located in the job configuration page as well and not the Jenkinsfile, as per the screenshot shown below. The new triggers will come up next to the "Build periodically" trigger.

If you are creating a new Pipeline job, you'll have to reconfigure the job and save it again before the job can be triggered properly. This is currently a known issue.

Comment trigger

Comment Trigger Configuration

Changelog trigger

Changelog Trigger Configuration

Environment variables

JIRA Trigger Plugin sets environment variables you can use during the build:

  • JIRA_ISSUE_KEY - The JIRA issue key that triggers the build

Troubleshooting

Build is not triggered

Firstly, enable Jenkins logging at FINE level for troubleshooting: com.ceilfors.jenkins.plugins.jiratrigger.webhook. You should see "Received Webhook callback ..." log messages when Jenkins is receiving webhook events from JIRA.

If you are not seeing anything in the log, your problem will either be in JIRA configuration or the network connectivity in between JIRA and Jenkins:

  • Make Webhook configuration more lenient for testing:
    • Remove JQL configuration in JIRA Webhook page if you configure one
    • Try to update an issue again and check if you are getting the logs now. If not, you might have network connectivity problem, proceed below.
  • If using JIRA Cloud:
    • Your Jenkins must be hosted with 80 or 443 port
  • If you own JIRA Server:
    • SSH to JIRA machine.
    • Try to cURL Jenkins URL and make sure that you can get a response back.
    • If you are getting a timeout, your firewall rule might be blocking JIRA Webhook events to be sent to Jenkins. You'll need to fix this for this plugin to work.

If you are seeing "Received Webhook callback ..." but your build is not triggered, your configuration for this plugin in Jenkins might be too restrictive, please double check.

Building Project

To build, run acceptance test, and release commands, refer to this document

Contributors

Thanks goes to these wonderful people (emoji key):


Pavel Zaikin

💻

Craig Rodrigues

💻

Steve Hill

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].