Added all commands

This commit is contained in:
Guillem Hernández Sola
2017-04-03 15:26:42 +02:00
parent 7f27c8c3e6
commit 8f2d4e6205
5 changed files with 117 additions and 0 deletions

23
06-basicWhen.groovy Normal file
View File

@@ -0,0 +1,23 @@
pipeline {
agent any
stages {
stage("One") {
steps {
echo "Hello"
}
}
stage("Two") {
when {
echo "Should I run?"
return true
}
steps {
script {
echo "World"
echo "Heal it"
}
}
}
}
}