Added Jenkinsfile
All checks were successful
Amarillo/amarillo-gitea/amarillo-compose/pipeline/head This commit looks good
All checks were successful
Amarillo/amarillo-gitea/amarillo-compose/pipeline/head This commit looks good
This commit is contained in:
parent
42b186c716
commit
3cf2ccb359
19
Jenkinsfile
vendored
Normal file
19
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
pipeline {
|
||||||
|
agent { label 'builtin' }
|
||||||
|
environment {
|
||||||
|
DEPLOY_WEBHOOK_URL = "http://amarillo.mfdz.de:8888/${env.BRANCH_NAME}"
|
||||||
|
DEPLOY_SECRET = credentials('AMARILLO-JENKINS-DEPLOY-SECRET')
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Notify CD script') {
|
||||||
|
steps {
|
||||||
|
echo 'Triggering deploy webhook'
|
||||||
|
script {
|
||||||
|
def response = httpRequest contentType: 'APPLICATION_JSON',
|
||||||
|
httpMode: 'POST', requestBody: '{}', authentication: 'AMARILLO-JENKINS-DEPLOY-SECRET',
|
||||||
|
url: "${DEPLOY_WEBHOOK_URL}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue