Fix
Apps/everybody-mov/pipeline/head There was a failure building this commit Details

This commit is contained in:
Amber McCloughan 2022-09-04 00:48:33 -04:00
parent 5dc9a9c749
commit 8e18b6e06d
1 changed files with 5 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@ pipeline {
REGISTRY = 'https://registry.digitalocean.com' REGISTRY = 'https://registry.digitalocean.com'
IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov' IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov'
IMAGE_BUILD = '' IMAGE_BUILD = ''
APP_ID = '' APP_ID = credentials('digital-ocean-app-id')
} }
stages { stages {
@ -66,12 +66,13 @@ pipeline {
credentialsId: env.CREDENTIALS_ID, credentialsId: env.CREDENTIALS_ID,
usernameVariable: 'API_TOKEN_USER', usernameVariable: 'API_TOKEN_USER',
passwordVariable: 'API_TOKEN_PASS' passwordVariable: 'API_TOKEN_PASS'
)]) { )]) {
sh """ sh '''
curl -H 'Authorization: Bearer $API_TOKEN_PASS' -H 'Content-Type: application/json' \ curl -H 'Authorization: Bearer $API_TOKEN_PASS' -H 'Content-Type: application/json' \
-X POST 'https://api.digitalocean.com/v2/apps/$APP_ID/deployments' -X POST 'https://api.digitalocean.com/v2/apps/$APP_ID/deployments'
-d '{ "force_build" : true }' -d '{ "force_build" : true }'
""" '''
}
} }
} }
} }