Compare commits
No commits in common. "6e9c19014d2146d5418b69753db783decb5fe41c" and "8dc852eec5efc03ebd71c3a9b50e8dc8fa08a2a2" have entirely different histories.
6e9c19014d
...
8dc852eec5
2 changed files with 20 additions and 20 deletions
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
|
@ -3,36 +3,36 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Build site') {
|
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 'git submodule update --init'
|
sh 'git submodule update --init'
|
||||||
sh 'hugo'
|
sh 'hugo'
|
||||||
}
|
}
|
||||||
// post {
|
post {
|
||||||
// success {
|
success {
|
||||||
// mattermostSend color: "good", message: "Site build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "good", message: "Site build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
// failure {
|
failure {
|
||||||
// mattermostSend color: "danger", message: "Site build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "danger", message: "Site build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy site') {
|
stage('Deploy site') {
|
||||||
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(
|
||||||
playbook: 'main.yaml',
|
playbook: 'main.yaml',
|
||||||
inventory: 'hosts.ini',
|
inventory: 'hosts.ini',
|
||||||
credentialsId: 'igor'
|
credentialsId: 'onedrop-vetinari'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// post {
|
post {
|
||||||
// success {
|
success {
|
||||||
// mattermostSend color: "good", message: "Site deploy success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "good", message: "Site deploy success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
// failure {
|
failure {
|
||||||
// mattermostSend color: "danger", message: "Site deploy failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "danger", message: "Site deploy failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
[web]
|
[web]
|
||||||
vimes.dreamfall.space
|
vetinari.dreamfall.space
|
||||||
|
|
Loading…
Reference in a new issue