jenkins: try alternative
This commit is contained in:
Vendored
+2
-2
@@ -4,7 +4,7 @@ pipeline {
|
||||
stage('Checkout') {
|
||||
when {
|
||||
beforeAgent true
|
||||
expression { return env.GIT_BRANCH == "origin/main" }
|
||||
expression { return env.GIT_BRANCH == 'origin/main' }
|
||||
}
|
||||
agent { label 'agent-12' }
|
||||
steps {
|
||||
@@ -41,7 +41,7 @@ pipeline {
|
||||
}
|
||||
agent { label 'agent-13' }
|
||||
steps {
|
||||
sh 'printenv'
|
||||
sh 'echo $GIT_BRANCH'
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user