Created
February 25, 2016 18:38
-
-
Save imranansari/4c02e6b76e586d991033 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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