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

7
Jenkinsfile vendored
View File

@ -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 {
@ -67,11 +67,12 @@ pipeline {
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 }'
"""
'''
}
}
}
}