diff --git a/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml b/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml index 8b7efe5d..d3802a21 100644 --- a/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml +++ b/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml @@ -10,6 +10,6 @@ tags: - build-config -- include: deploy-conf.yml +- include: deploy-config.yml tags: - - deploy-conf + - deploy-config diff --git a/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConf.dev b/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev similarity index 52% rename from keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConf.dev rename to keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev index 14c9a207..81552e96 100644 --- a/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConf.dev +++ b/keycloak/scripts/pipelines/keycloak-deploy/JenkinsfileDeployConfig.dev @@ -13,7 +13,18 @@ node('general-dev') { } stage('Build'){ - sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --limit keycloak --tags deploy-conf --vault-password-file /run/secrets/vault-pass -vvv') + + 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) {