#13 use HTTP basic auth
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
510648cd37
commit
1ea83fbbb9
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
|
@ -52,9 +52,8 @@ pipeline {
|
|||
steps {
|
||||
echo 'Triggering deploy webhook'
|
||||
script {
|
||||
def body = '{"secret": "$DEPLOY_SECRET"}'
|
||||
def response = httpRequest contentType: 'APPLICATION_JSON',
|
||||
httpMode: 'POST', requestBody: body,
|
||||
httpMode: 'POST', authentication: 'AMARILLO-JENKINS-DEPLOY-SECRET',
|
||||
url: "${DEPLOY_WEBHOOK_URL}"
|
||||
|
||||
println("Status: ${response.status}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue