I know that I can get the latest revision for the current build by
executing a shell command such as:
def currentCommit = sh(returnStdout: true, script: 'git rev-parse
HEAD').trim()
But I would like to get the commit hash associated with a previous build.
The reason I want to do this is so that I can list all commits associated
with a given build since the previous build.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/30fc932b-a187-426a-b9bd-fa3c8a19b452%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.