Rename the REMOVE_LOCAL_REPO var.

This commit is contained in:
Manuele Simi 2019-10-11 12:02:03 -04:00
parent 253d5d1a28
commit 62186ca73a
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -77,7 +77,7 @@ pipeline {
MAVEN_SETTINGS_FILE = "${maven_settings_file}"
MAVEN_LOCAL_REPO = "${agent_root_folder}/${maven_local_repo_path}"
CLEANUP_GCUBE_REPO = "${params.cleanup_gcube_artifacts}"
CLEANUP_LOCAL_REPO = "true"
REMOVE_LOCAL_REPO = "true"
GCUBE_RELEASE_NUMBER = "${params.gCube_release_version}"
PIPELINE_BUILD_NUMBER = "${env.BUILD_NUMBER}"
}
@ -106,8 +106,8 @@ pipeline {
stage('clean up before starting') {
steps {
sh '''
echo "CLEANUP_LOCAL_REPO: $CLEANUP_LOCAL_REPO"
echo "CLEANUP_GCUBE_REPO: $CLEANUP_GCUBE_REPO"
echo "REMOVE_LOCAL_REPO: ${REMOVE_LOCAL_REPO}"
echo "CLEANUP_GCUBE_REPO: ${CLEANUP_GCUBE_REPO}"
if [ "$CLEANUP_GCUBE_REPO" = "true" ]; then
echo "Remove gCube artifacts from local repository"
rm -rf $MAVEN_LOCAL_REPO/org/gcube