Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1211 committed Jun 14, 2024
1 parent a0f3f0a commit 2424a8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ prepare: ## Prepare environment
pipeline-prepare

pipeline-prepare:
sh echo "Preparing pipeline $(PROJECT_DIR) - ${JENKINS_ENV} - ${JENKINS_SERVICE_TEAM}"
sh $(PROJECT_DIR)scripts/assume_role.sh $(JENKINS_ENV) $(JENKINS_SERVICE_TEAM)

pipeline-slave-prepare:
Expand Down
13 changes: 13 additions & 0 deletions build/jenkins/deployments.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,62 +69,71 @@ pipeline {
stage('Show Variables') {
steps {
script {
env.PROFILE = envProfile
sh 'make devops-print-variables'
}
}
}
stage('Check Py Lib Folder') {
steps {
script {
env.PROFILE = envProfile
sh 'make create-lambda-deploy-dir'
}
}
}
stage('Plan Infrastructure') {
steps {
script {
env.PROFILE = envProfile
sh "make plan PROFILE=${envProfile}"
}
}
}
stage('Infrastructure Approval') {
steps {
script {
env.PROFILE = envProfile
input 'Approve to continue with provisioning'
}
}
}
stage('Provision Infrastructure') {
steps {
script {
env.PROFILE = envProfile
sh "make provision PROFILE=${envProfile}"
}
}
}
stage('Deploy API') {
steps {
script {
env.PROFILE = envProfile
sh "make deploy PROFILE=${envProfile} IMAGE_TAG=${params.IMAGE_TAG}"
}
}
}
stage('Monitor Deployment') {
steps {
script {
env.PROFILE = envProfile
sh 'make k8s-check-deployment-of-replica-sets'
}
}
}
stage('Monitor Route53 Connection') {
steps {
script {
env.PROFILE = envProfile
sh 'make monitor-r53-connection'
}
}
}
stage('Perform Extract Lambda function') {
steps {
script {
env.PROFILE = envProfile
sh "make postcode-extract-etl PROFILE=${envProfile}"
}
}
Expand All @@ -137,13 +146,15 @@ pipeline {
}
steps {
script {
env.PROFILE = envProfile
sh "make postcode-insert-etl PROFILE=${envProfile}"
}
}
}
stage('Smoke Tests') {
steps {
script {
env.PROFILE = envProfile
sh 'make run-smoke-test'
}
}
Expand All @@ -153,12 +164,14 @@ pipeline {
failure {
script {
if (params.PROFILE == 'Demo') {
env.PROFILE = envProfile
sh 'make terraform-remove-state-lock'
}
}
}
always {
script {
env.PROFILE = envProfile
sh 'make clean'
}
}
Expand Down

0 comments on commit 2424a8d

Please sign in to comment.