add a parameter to Jenkins pipeline

This commit is contained in:
odain
2019-11-29 16:37:01 +01:00
parent 35a49bad60
commit 1b168501af

5
Jenkinsfile vendored
View File

@@ -1,5 +1,8 @@
pipeline {
agent any
parameters {
string(name: 'RUN_NON_REG_TESTS', defaultValue: '0', description: 'Do You want to run legacy OQL regression tests?')
}
stages {
stage('init') {
@@ -36,7 +39,7 @@ pipeline {
parallel {
stage('phpunit') {
steps {
sh './.jenkins/bin/tests/phpunit.sh'
sh './.jenkins/bin/tests/phpunit.sh ${params.RUN_NON_REG_TESTS}'
}
}
}