From 8e18b6e06d39b6e3a46db7ab78e16fe2b1dae28a Mon Sep 17 00:00:00 2001 From: Amber Date: Sun, 4 Sep 2022 00:48:33 -0400 Subject: [PATCH] Fix --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }' - """ + ''' + } } } }