node { | |
stage 'Checkout' | |
def scmVars = checkout scm | |
def commitHash = scmVars.GIT_COMMIT | |
println commitHash | |
} |
> git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/henryju/test-jenkins.git # timeout=10 Fetching without tags Fetching upstream changes from https://github.com/henryju/test-jenkins.git > git --version # timeout=10 using GIT_ASKPASS to set credentials > git fetch --no-tags --force --progress https://github.com/henryju/test-jenkins.git +refs/pull/1/head:refs/remotes/origin/PR-1 +refs/heads/master:refs/remotes/origin/master Merging remotes/origin/master commit 57ff7166357a4939da69bc43db84961536557c21 into PR head commit ab86fe3afa0b9473ea9da76c87872bf89b9b5f3b > git config core.sparsecheckout # timeout=10 > git checkout -f ab86fe3afa0b9473ea9da76c87872bf89b9b5f3b > git merge 57ff7166357a4939da69bc43db84961536557c21 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 Merge succeeded, producing 6a95262014cca41cf11e810401bd5c1bc0954515 Checking out Revision 6a95262014cca41cf11e810401bd5c1bc0954515 (PR-1) > git config core.sparsecheckout # timeout=10 > git checkout -f 6a95262014cca41cf11e810401bd5c1bc0954515 Commit message: "Merge commit '57ff7166357a4939da69bc43db84961536557c21' into HEAD" > git rev-list --no-walk ab86fe3afa0b9473ea9da76c87872bf89b9b5f3b # timeout=10
Julien Henry | SonarSource
Developer
https://sonarsource.comwe faced the same problem a few months ago, we've resolved it by adding a calculated environment variable for more details see https://groups.google.com/forum/#!topic/jenkinsci-dev/Dus0VX6y04g
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/-ojqklsaKbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ee8163ba-5f14-48f8-b888-0983d67e22f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Developer
https://sonarsource.com--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/-ojqklsaKbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2d5Uawmzr-ybfbFjL8jNorY03NZ2Gjc2uoi0YyFxT-Ww%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to jenkin...@googlegroups.com.