From 3fbedec1c1dd3119860707c7baa01e8f7321f437 Mon Sep 17 00:00:00 2001 From: Amol Ghatol Date: Tue, 27 Feb 2018 17:02:47 +0530 Subject: [PATCH] Issue #28 chore: Deployment script for sunbird auth package --- .../pipelines/keycloak-deploy/Jenkinsfile.dev | 34 ------------------- .../JenkinsfileDeployConfig.dev | 34 ------------------- 2 files changed, 68 deletions(-) delete mode 100644 keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev delete mode 100644 keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev diff --git a/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev b/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev deleted file mode 100644 index 34ea4088..00000000 --- a/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev +++ /dev/null @@ -1,34 +0,0 @@ -#!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: 'New_Build/Sunbird_Auth_Build', - filter: 'sunbird_auth_1.0v.zip', - target: 'sunbird-auth/keycloak/scripts/ansible' ] - ); - - sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --limit keycloak --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 - } -} diff --git a/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev b/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev deleted file mode 100644 index 81552e96..00000000 --- a/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev +++ /dev/null @@ -1,34 +0,0 @@ -#!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: 'New_Build/Sunbird_Auth_Config_Build', - filter: 'sunbird_auth_1.0v.config.zip', - target: 'sunbird-auth/keycloak/scripts/ansible' ] - ); - - sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --limit keycloak --tags deploy-config --vault-password-file /run/secrets/vault-pass -vvv') - } - - stage('Archive'){ - archiveArtifacts 'sunbird-auth/keycloak/scripts/ansible/sunbird_auth_1.0v.config.zip' - } - } - catch (err) { - currentBuild.result = "FAILURE" - throw err - } -}