Skip to content

Commit

Permalink
Issue Sunbird-Lern#24 chore:Sunbird auth package build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahghatol committed Dec 21, 2017
1 parent 4017895 commit 4c843a8
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions keycloak/scripts/pipelines/keycloak-build/Jenkinsfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@

node('build-slave') {

currentBuild.result = "SUCCESS"
currentBuild.result = "SUCCESS"

try {
try {

stage('Build'){
sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --tags build --vault-password-file /run/secrets/vault-pass')
}
stage('checkout')
{
sh('rm -rf sunbird-auth')
sh('git clone https://github.com/ahghatol/sunbird-auth.git')
}

stage('Archive'){
// archiveArtifacts 'keycloak_build/login.tar.gz'
// archiveArtifacts 'keycloak_build.tar.gz'
}
}
catch (err) {
currentBuild.result = "FAILURE"
throw err
}
stage('Build'){
sh('ls')
sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --tags build --vault-password-file /home/ops/vault -vvv')
}

stage('Archive'){
archiveArtifacts 'sunbird-auth/keycloak/scripts/ansible/sunbird_auth_1.0v.zip'
}
}
catch (err) {
currentBuild.result = "FAILURE"
throw err
}
}

0 comments on commit 4c843a8

Please sign in to comment.