generated from gCubeCI/Pipeline-Docker-Template
feature/25019 #1
|
@ -0,0 +1 @@
|
||||||
|
.idea/
|
|
@ -40,6 +40,9 @@ pipeline {
|
||||||
string(name: 'build_options',
|
string(name: 'build_options',
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'Additional options for Maven.')
|
description: 'Additional options for Maven.')
|
||||||
|
string(name: 'maven_goal',
|
||||||
|
defaultValue: 'clean deploy',
|
||||||
|
description: 'maven goal. Useful if deploy is not needed')
|
||||||
}
|
}
|
||||||
agent
|
agent
|
||||||
{
|
{
|
||||||
|
@ -62,7 +65,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Build the job') {
|
stage('Build the job') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn --settings $MAVEN_CONFIG_FOLDER/$gcube_settings -Dmaven.repo.local=$MAVEN_CONFIG_FOLDER/$local_repo $build_options dependency:tree clean deploy'
|
sh 'mvn --settings $MAVEN_CONFIG_FOLDER/$gcube_settings -Dmaven.repo.local=$MAVEN_CONFIG_FOLDER/$local_repo $build_options dependency:tree $maven_goal'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue