Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 728 Bytes

DSL.md

File metadata and controls

33 lines (30 loc) · 728 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()
            // - or -
            mentionedInCommitOrUpstreamCommits()            
        }
        jiraOperations {
            transition('Deploy to Test');
            addComment('You went through a Jenkins build!')
            addLabel('Cool stuff')
            updateField('customField_123', 'Hello World')
        }
    }
    //...
  }
}