Update 'Jenkinsfile'

add new input parameters: settings, repo and label
This commit is contained in:
Roberto Cirillo 2023-01-12 15:54:48 +01:00
parent dcc4ee5681
commit f5d5aa24a3
1 changed files with 12 additions and 0 deletions

12
Jenkinsfile vendored
View File

@ -19,6 +19,9 @@ pipeline {
GIT_BRANCH="${params.GIT_BRANCH.split('/').size() > 1 ? params.GIT_BRANCH.split('/')[1..-1].join('/') : params.GIT_BRANCH}"
// GIT_BRANCH= "${params.GIT_BRANCH.split("/")[1]}"
// GIT_BRANCH= "${params.GIT_BRANCH}"
gcube_settings="${params.gcube_settings}"
local_repo="${params.local_repo}"
exe_label="${params.exec_label}"
}
parameters {
string(name: 'GIT_URL',
@ -27,6 +30,15 @@ pipeline {
string(name: 'GIT_BRANCH',
defaultValue: '',
description: 'git branch')
string(name: 'gcube_settings',
defaultValue: 'settings.xml',
description: 'the maven settings for gcube')
string(name: 'local_repo',
defaultValue: 'repository',
description: 'The location of the local repository')
string(name: 'exec_label',
defaultValue: 'CI',
description: 'Run on all nodes matching the label')
}
stages {
stage('Checkout git project') {