generated from gCubeCI/Pipeline-Docker-Template
Update 'Jenkinsfile'
add new input parameters: settings, repo and label
This commit is contained in:
parent
dcc4ee5681
commit
f5d5aa24a3
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue