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 29, 2017
1 parent 68b4ea6 commit 397c93b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keycloak/scripts/ansible/roles/keycloak/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
tags:
- deploy

- include: build-config.yml
tags:
- build-config

- include: deploy-conf.yml
tags:
- deploy-conf
29 changes: 29 additions & 0 deletions keycloak/scripts/pipelines/keycloak-build/JenkinsfileConfig.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!groovy

node('build-slave') {

currentBuild.result = "SUCCESS"

try {

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

stage('Build'){
sh('ls')
sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --limit localhost --tags build-conf --vault-password-file /home/ops/vault -vvv')
}

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

0 comments on commit 397c93b

Please sign in to comment.