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