Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 651 Bytes

DSL.md

File metadata and controls

31 lines (28 loc) · 651 Bytes

Using the Job-DSL plugin

The jira-ext plugin can be configured via job-dsl plugin:

job {
  //...
  steps {
    //...
    updateJiraExt {
        issueStrategy {
            singleIssue('JENKINS-101')
            // - or -
            firstWordOfCommit()
            // - or -
            firstWordOfUpstreamCommit()
            // - or -
            mentionedInCommit()
        }
        jiraOperations {
            transition('Deploy to Test');
            addComment('You went through a Jenkins build!', true)
            addLabel('Cool stuff')
            updateField('customField_123', 'Hello World')
        }
    }
    //...
  }
}