#13 fixed deploy secret string interpolation
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
This commit is contained in:
parent
cfa05d4fb3
commit
aa5a7ec801
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
|
@ -52,9 +52,9 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo 'Triggering deploy webhook'
|
echo 'Triggering deploy webhook'
|
||||||
script {
|
script {
|
||||||
def body = """
|
def body = '
|
||||||
{"secret": "${DEPLOY_SECRET}"}
|
{"secret": "$DEPLOY_SECRET"}
|
||||||
"""
|
'
|
||||||
def response = httpRequest contentType: 'APPLICATION_JSON',
|
def response = httpRequest contentType: 'APPLICATION_JSON',
|
||||||
httpMode: 'POST', requestBody: body,
|
httpMode: 'POST', requestBody: body,
|
||||||
url: "${DEPLOY_WEBHOOK_URL}"
|
url: "${DEPLOY_WEBHOOK_URL}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue