forked from Sunbird-Lern/sunbird-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue Sunbird-Lern#24 chore:Sunbird auth package build
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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
29
keycloak/scripts/pipelines/keycloak-build/JenkinsfileConfig.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |