Added zero
This commit is contained in:
27
005-environmentInStage.groovy
Normal file
27
005-environmentInStage.groovy
Normal file
@@ -0,0 +1,27 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
FOO = "BAZ"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("baz") {
|
||||
steps {
|
||||
sh 'echo "FOO is $FOO"'
|
||||
}
|
||||
}
|
||||
stage("bar") {
|
||||
environment {
|
||||
FOO = "BAR"
|
||||
}
|
||||
|
||||
steps {
|
||||
sh 'echo "FOO is $FOO"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user