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