Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-05 17:23:39 +00:00
parent c4cba3ddc6
commit e0be3b5f9d

15
Jenkinsfile vendored
View File

@@ -2,6 +2,10 @@ pipeline {
agent any
parameters {
choice(name: 'VERSION', choices: ['1.1.0', '1.2.0', '1.3.0'], description: '')
booleanParam(name: 'executeTests', defaultValue: true, description: '')
}
stages {
stage("build") {
@@ -10,17 +14,26 @@ pipeline {
echo 'building the application...'
}
}
stage("test") {
when {
expression {
params.executeTests
}
}
steps {
echo 'testing the application...'
}
}
stage("deploy") {
steps {
echo 'deploying the application...'
echo 'deplying the application...'
echo "deploying version ${params.VERSION}"
}
}
}
}