Skip to content
forked from drone/drone-jira

Drone plugin for sending build and deployment status updates to Jira

License

Notifications You must be signed in to change notification settings

dkrym/drone-jira

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Original plugin (https://github.com/drone/drone-jira) extracts only 1 issue number for Jira Deployment. I changed the plugin to extract multiple issues (if they exist) which is usedful when you use git merge --squash to merge multiple commits as one. All issue numbers are then sent to Jira Deployment (instead of only 1 as in the original plugin).


A plugin to attach build and deployment details to a Jira issue.

Building

Build the plugin binary:

scripts/build.sh

Build the plugin image:

docker build -t plugins/jira -f docker/Dockerfile .

Testing

Execute the plugin from your current working directory:

docker run --rm \
  -e DRONE_COMMIT_SHA=8f51ad7884c5eb69c11d260a31da7a745e6b78e2 \
  -e DRONE_COMMIT_BRANCH=master \
  -e DRONE_COMMIT_AUTHOR=octocat \
  -e [email protected] \
  -e DRONE_COMMIT_MESSAGE="DRONE-42 updated the readme" \
  -e DRONE_BUILD_NUMBER=43 \
  -e DRONE_BUILD_STATUS=success \
  -e DRONE_BUILD_LINK=https://cloud.drone.io \
  -e PLUGIN_CLOUD_ID=${JIRA_CLOUD_ID} \
  -e PLUGIN_CLIENT_ID=${JIRA_CLIENT_ID} \
  -e PLUGIN_CLIENT_SECRET=${JIRA_CLIENT_SECRET} \
  -e PLUGIN_PROJECT=${JIRA_PROJECT} \
  -e PLUGIN_PIPELINE=drone \
  -e PLUGIN_ENVIRONMENT=production \
  -e PLUGIN_STATE=successful \
  -w /drone/src \
  -v $(pwd):/drone/src \
  plugins/jira

About

Drone plugin for sending build and deployment status updates to Jira

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.1%
  • Shell 2.6%
  • Dockerfile 1.3%