#Jenkins Pipeline Scripts Group of specialized jenkins pipeline scripts
This script updates JIRA tickets' details to organize release notes. It compares two git branches, extracts JIRA keys from commit messages, and updates the Fix Version value and comments on each ticket with version and branch information.
Useful to organize a version before release by comparing release candidate branch with production branch.
- Jenkins plugin: jira-ext
- JIRA Keys to be included in commit messages. Smart Commits
- JIRA Instance
- Repository on git
- Multibranch Pipeline Jenkins Job
- Add file to repository
- Create Multibranch Pipeline Job in Jenkins
- Provide path to JenkinsfileGenerateReleaseNotes
- Script has a reference to JIRA custom field to display branch.
- customfield_00000
- Replace jiraBaseUrl references with actual JIRA base URL.
This script can be used as part of existing Jenkins Pipeline jobs to update JIRA tickets' details. It uses the Jenkins Change Log during a build to extract JIRA keys from commits, updates the JIRA tickets by updating custom fields to display Branch deploy, Environment deployed to, and adds a comment.
- Jenkins plugin: jira-ext
- JIRA Keys to be included in commit messages. Smart Commits
- JIRA Instance
- Repository on git
- Multibranch Pipeline Jenkins Job
- Add the stage('JIRA') section and getJiraTicketsFromCommits() function to your existing pipeline script
- Script has a reference to JIRA custom field to display branch.
- customfield_00000
- Replace jiraBaseUrl references with actual JIRA base URL.