Skip to content

Commit

Permalink
fix: updated jenkins file for new build process (#95)
Browse files Browse the repository at this point in the history
* fix: updating jenkins build as per new format

* fix: removed unused JF
  • Loading branch information
beepdot authored Mar 5, 2021
1 parent 67e685a commit 62a24aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
17 changes: 3 additions & 14 deletions keycloak/scripts/pipelines/sunbird-auth-build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,12 @@ node('build-slave') {
ansiColor('xterm') {
stage('Checkout') {
cleanWs()
def scmVars = checkout scm
if (params.github_release_tag == "") {
checkout scm
commit_hash = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim()
branch_name = sh(script: 'git name-rev --name-only HEAD | rev | cut -d "/" -f1| rev', returnStdout: true).trim()
artifact_version = branch_name + "_" + commit_hash
println(ANSI_BOLD + ANSI_YELLOW + "github_release_tag not specified, using the latest commit hash: " + commit_hash + ANSI_NORMAL)
}
else {
checkout scm: [$class: 'GitSCM', branches: [[name: "refs/tags/${params.github_release_tag}"]], userRemoteConfigs: [[url: scmVars.GIT_URL]]]
artifact_version = params.github_release_tag
println(ANSI_BOLD + ANSI_YELLOW + "github_release_tag specified, building from: " + params.github_release_tag + ANSI_NORMAL)
}
checkout scm
commit_hash = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim()
artifact_version = sh(script: "echo " + params.github_release_tag.split('/')[-1] + "_" + commit_hash + "_" + env.BUILD_NUMBER, returnStdout: true).trim()
echo "artifact_version: "+ artifact_version
}


stage('Build') {
sh """
mkdir sunbird_auth_1.0v
Expand Down

This file was deleted.

0 comments on commit 62a24aa

Please sign in to comment.