diff --git a/build/taxonomy-service/Jenkinsfile b/build/taxonomy-service/Jenkinsfile index 453a603f6..a1d38ce2e 100644 --- a/build/taxonomy-service/Jenkinsfile +++ b/build/taxonomy-service/Jenkinsfile @@ -21,17 +21,20 @@ node('build-slave') { commit_hash = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim() build_tag = sh(script: "echo " + params.github_release_tag.split('/')[-1] + "_" + commit_hash + "_" + env.BUILD_NUMBER, returnStdout: true).trim() echo "build_tag: " + build_tag + cloud_store_group_id = params.CLOUD_STORE_GROUP_ID + cloud_store_artifact_id = params.CLOUD_STORE_ARTIFACT_ID + cloud_store_version = params.CLOUD_STORE_VERSION stage('Build') { env.NODE_ENV = "build" print "Environment will be : ${env.NODE_ENV}" - sh 'mvn clean install -DskipTests=true ' + sh 'mvn clean install -DskipTests=true -DCLOUD_STORE_GROUP_ID=' + cloud_store_group_id + ' -DCLOUD_STORE_ARTIFACT_ID=' + cloud_store_artifact_id + ' -DCLOUD_STORE_VERSION=' + cloud_store_version } stage('Package') { dir('taxonomy-api') { - sh 'mvn play2:dist -pl taxonomy-service' + sh 'mvn play2:dist -pl taxonomy-service -DCLOUD_STORE_GROUP_ID=' + cloud_store_group_id + ' -DCLOUD_STORE_ARTIFACT_ID=' + cloud_store_artifact_id + ' -DCLOUD_STORE_VERSION=' + cloud_store_version } sh('chmod 777 build/build.sh') sh("build/build.sh ${build_tag} ${"taxonomy-service"} ${env.NODE_NAME} ${hub_org}")