From 0c877ead29b996435a6cc45a4dff01a59276e577 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 28 Apr 2023 11:33:58 +0200 Subject: [PATCH] add default goal --- .idea/.gitignore | 3 +++ .idea/gCubeBuild-AlternateJdk.iml | 9 +++++++++ .idea/misc.xml | 9 +++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ Jenkinsfile | 7 +++++-- 6 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/gCubeBuild-AlternateJdk.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/gCubeBuild-AlternateJdk.iml b/.idea/gCubeBuild-AlternateJdk.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/gCubeBuild-AlternateJdk.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d79bd4e --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f91bc26 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 6932d2c..f072ccc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,7 +39,10 @@ pipeline { description: 'Run on all nodes matching the label') string(name: 'build_options', 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 { @@ -62,7 +65,7 @@ pipeline { } stage('Build the job') { 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' } }