Web/Jenkinsfile

30 lines
541 B
Text
Raw Normal View History

2020-02-25 13:10:28 +01:00
pipeline {
2021-03-17 19:46:58 +01:00
agent any
stages {
stage('Build') {
2021-03-17 19:46:58 +01:00
when {
branch 'master'
}
steps {
sh '''cd main
bundle
bundle exec jekyll build'''
2021-03-17 19:46:58 +01:00
}
}
stage('Deploy') {
when {
branch 'master'
2020-04-02 21:54:20 +02:00
}
steps {
2021-07-09 03:23:52 +02:00
sh "rm -rf ${env.DEST}/*"
sh "cp -r main/_site/. ${env.DEST}"
sh "cp -r actaddmanual ${env.DEST}"
sh "cp -r commissions ${env.DEST}"
2020-04-02 21:54:20 +02:00
}
}
2020-02-25 13:10:28 +01:00
}
2021-07-09 03:20:34 +02:00
environment {
DEST = "/var/www/ellpeck"
}
2020-02-25 13:10:28 +01:00
}