split build agent for ansible
Some checks failed
dreamfall/morgan.mcmillian.dev/pipeline/head There was a failure building this commit
Some checks failed
dreamfall/morgan.mcmillian.dev/pipeline/head There was a failure building this commit
This commit is contained in:
parent
fbee2cfb8c
commit
14ec3d4f87
1 changed files with 8 additions and 6 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -1,12 +1,13 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
|
agent none
|
||||||
|
stages {
|
||||||
|
stage('Build site') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'git.dreamfall.space/thrrgilag/kiln:latest'
|
image 'git.dreamfall.space/thrrgilag/kiln:latest'
|
||||||
label 'docker-build'
|
label 'docker-build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
|
||||||
stage('Build site') {
|
|
||||||
steps {
|
steps {
|
||||||
mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
sh 'kiln build'
|
sh 'kiln build'
|
||||||
|
@ -21,6 +22,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy site') {
|
stage('Deploy site') {
|
||||||
|
agent { label 'docker-build' }
|
||||||
steps {
|
steps {
|
||||||
mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
ansiblePlaybook(
|
ansiblePlaybook(
|
||||||
|
|
Loading…
Reference in a new issue