Skip to content

Instantly share code, notes, and snippets.

@imranansari
Created February 25, 2016 18:38
Show Gist options
  • Save imranansari/4c02e6b76e586d991033 to your computer and use it in GitHub Desktop.
Save imranansari/4c02e6b76e586d991033 to your computer and use it in GitHub Desktop.
node {
// Mark the code checkout 'stage'....
stage 'Checkout'
// Get some code from a GitHub repository
// git url: 'https://github.com/jglick/simple-maven-project-with-tests.git'
git url: 'https://github.com/mvpartisans/jenkins-workflows'
println 'getting changesets'
getChangeSet()
}
def getChangeSet(){
def changeSets= currentBuild.getRawBuild().getChangeSets()
changeSets.each {changeSet ->
changeSet.each{
//println it.comment
println it.committer
println it.title
println it.date
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment