Skip to content

Commit

Permalink
Issue #KN-1089 fix: added cloud storage parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
krgauraw committed May 17, 2024
1 parent 1bf360a commit c5cf8c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/taxonomy-service/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit c5cf8c5

Please sign in to comment.