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 22, 2017
1 parent 4c843a8 commit f773bf9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!groovy

node('general-dev') {

currentBuild.result = "SUCCESS"

try {

stage('checkout')
{
sh('rm -rf sunbird-auth')
sh('git clone https://github.com/ahghatol/sunbird-auth.git')
}

stage('Build'){

step ([$class: 'CopyArtifact',
projectName: 'Dev/Keycloak_Deploy',
filter: 'keycloak_build.tar.gz',
target: 'sunbird-auth/keycloak/scripts/ansible' ]
);

sh('ls')
sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --tags deploy --vault-password-file /run/secrets/vault-pass -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 f773bf9

Please sign in to comment.