mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Fix PaaS deploy in Jenkinsfile
This commit is contained in:
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
@@ -37,44 +37,44 @@ def deploy(cfEnv) {
|
|||||||
]) {
|
]) {
|
||||||
withEnv(["CF_SPACE=${cfEnv}"]) {
|
withEnv(["CF_SPACE=${cfEnv}"]) {
|
||||||
parallel deployApi: {
|
parallel deployApi: {
|
||||||
withEnv(["CF_APP=notify-api"]) {
|
retry(3) {
|
||||||
retry(3) {
|
withEnv(["CF_APP=notify-api"]) {
|
||||||
sh 'make cf-deploy'
|
sh 'make cf-deploy-with-docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, deployDeliveryCeleryBeat: {
|
}, deployDeliveryCeleryBeat: {
|
||||||
sleep(10)
|
sleep(10)
|
||||||
withEnv(["CF_APP=notify-delivery-celery-beat"]) {
|
retry(3) {
|
||||||
retry(3) {
|
withEnv(["CF_APP=notify-delivery-celery-beat"]) {
|
||||||
sh 'make cf-deploy'
|
sh 'make cf-deploy-with-docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, deployDeliveryWorker: {
|
}, deployDeliveryWorker: {
|
||||||
sleep(20)
|
sleep(20)
|
||||||
withEnv(["CF_APP=notify-delivery-worker"]) {
|
retry(3) {
|
||||||
retry(3) {
|
withEnv(["CF_APP=notify-delivery-worker"]) {
|
||||||
sh 'make cf-deploy'
|
sh 'make cf-deploy-with-docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, deployDeliveryWorkerSender: {
|
}, deployDeliveryWorkerSender: {
|
||||||
sleep(30)
|
sleep(30)
|
||||||
withEnv(["CF_APP=notify-delivery-worker-sender"]) {
|
retry(3) {
|
||||||
retry(3) {
|
withEnv(["CF_APP=notify-delivery-worker-sender"]) {
|
||||||
sh 'make cf-deploy'
|
sh 'make cf-deploy-with-docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, deployDeliveryWorkerDatabase: {
|
}, deployDeliveryWorkerDatabase: {
|
||||||
sleep(40)
|
sleep(40)
|
||||||
withEnv(["CF_APP=notify-delivery-worker-database"]) {
|
retry(3) {
|
||||||
retry(3) {
|
withEnv(["CF_APP=notify-delivery-worker-database"]) {
|
||||||
sh 'make cf-deploy'
|
sh 'make cf-deploy-with-docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, deployDeliveryWorkerResearch: {
|
}, deployDeliveryWorkerResearch: {
|
||||||
sleep(50)
|
sleep(50)
|
||||||
withEnv(["CF_APP=notify-delivery-worker-research"]) {
|
retry(3) {
|
||||||
retry(3) {
|
withEnv(["CF_APP=notify-delivery-worker-research"]) {
|
||||||
sh 'make cf-deploy'
|
sh 'make cf-deploy-with-docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user