Fix
Apps/everybody-mov/pipeline/head There was a failure building this commit
Details
Apps/everybody-mov/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
5dc9a9c749
commit
8e18b6e06d
|
@ -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 }'
|
||||
"""
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue