2020-02-25 13:10:28 +01:00
|
|
|
pipeline {
|
2021-03-17 19:46:58 +01:00
|
|
|
agent any
|
2021-03-17 19:21:46 +01:00
|
|
|
stages {
|
2021-07-09 01:59:28 +02:00
|
|
|
stage('Build') {
|
2021-03-17 19:46:58 +01:00
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
2021-07-09 01:59:28 +02:00
|
|
|
sh '''cd main
|
|
|
|
bundle
|
|
|
|
bundle exec jekyll build'''
|
2021-03-17 19:46:58 +01:00
|
|
|
}
|
|
|
|
}
|
2021-07-09 01:59:28 +02: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
|
|
|
}
|