Update 'Jenkinsfile'

add gitParameter type
This commit is contained in:
Roberto Cirillo 2022-09-21 09:59:02 +02:00
parent 9c03cbf01c
commit 3aed62ebc6
1 changed files with 6 additions and 0 deletions

6
Jenkinsfile vendored
View File

@ -15,6 +15,12 @@ pipeline {
GIT_URL= "${params.GIT_URL}"
GIT_BRANCH= "${params.GIT_BRANCH}"
}
parameters {
string(name: 'GIT_URL',
defaultValue: '',
description: 'git url')
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'GIT_BRANCH', type: 'PT_BRANCH'
}
stages {
stage('Checkout git project') {
steps {