summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 5198b5d..99805b4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,11 +1,26 @@
def REPO = 'ssh://gerrit1.techsat.local:29418/external/Qt'
+properties([
+ parameters([
+ gitParameter(branch: '',
+ branchFilter: 'origin/(.*)',
+ defaultValue: 'master',
+ description: '',
+ name: 'BRANCH',
+ quickFilterEnabled: false,
+ selectedValue: 'NONE',
+ sortMode: 'NONE',
+ tagFilter: '*',
+ type: 'PT_BRANCH_TAG')
+ ])
+])
+
stage('Build') {
parallel linux: {
node('bslp02-centos6-64') {
deleteDir()
checkout([$class: 'GitSCM',
- branches: [[name: 'features/newbuild']],
+ branches: [[name: '${params.BRANCH}']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
@@ -21,7 +36,7 @@ stage('Build') {
try {
deleteDir()
checkout([$class: 'GitSCM',
- branches: [[name: 'features/newbuild']],
+ branches: [[name: '${params.BRANCH}']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],