From f773bf90cffc220608bc7b0411b927d953ccc7ca Mon Sep 17 00:00:00 2001 From: Amol Ghatol Date: Fri, 22 Dec 2017 10:59:19 +0530 Subject: [PATCH] Issue #24 chore:Sunbird auth package build --- .../pipelines/keycloak-deploy/Jenkinsfile.dev | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev diff --git a/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev b/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev new file mode 100644 index 00000000..c21fd6a8 --- /dev/null +++ b/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev @@ -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 + } +}