Jenkins: Better document some stuff
This commit is contained in:
10
.ci/Jenkinsfile
vendored
10
.ci/Jenkinsfile
vendored
@@ -113,9 +113,9 @@ def gitClone(repository, branch) {
|
|||||||
} else if (env.GIT_COMMIT != scmVars.GIT_COMMIT) {
|
} else if (env.GIT_COMMIT != scmVars.GIT_COMMIT) {
|
||||||
/* Checkout the commit read from the polling log. */
|
/* Checkout the commit read from the polling log. */
|
||||||
if (isUnix())
|
if (isUnix())
|
||||||
sh returnStatus: true, script: "git checkout ${env.GIT_COMMIT}"
|
sh(returnStatus: true, script: "git checkout ${env.GIT_COMMIT}")
|
||||||
else
|
else
|
||||||
bat returnStatus: true, script: "git checkout ${env.GIT_COMMIT}"
|
bat(returnStatus: true, script: "git checkout ${env.GIT_COMMIT}")
|
||||||
}
|
}
|
||||||
println "[-] Using git commit [${env.GIT_COMMIT}]"
|
println "[-] Using git commit [${env.GIT_COMMIT}]"
|
||||||
|
|
||||||
@@ -173,8 +173,10 @@ pipeline {
|
|||||||
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
/* Extract the polled commit from the polling log, so that git checkout can be used
|
/* Extract the polled commit from the polling log, so that git checkout
|
||||||
to avoid JENKINS-20518 race conditions caused by two pushes too close together. */
|
can be used to avoid JENKINS-20518 race conditions caused by the
|
||||||
|
webhook being triggered more than once in a short period of time.
|
||||||
|
This is a backup strategy for FilterProxy's webhook queuing. */
|
||||||
node('master') { /* must run on master node to read polling log */
|
node('master') { /* must run on master node to read polling log */
|
||||||
/* Ignore exceptions as this is not really critical. */
|
/* Ignore exceptions as this is not really critical. */
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user