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-08-10 22:11:29 +02:00
|
|
|
sh "rm -rf /var/www/ellpeck/*"
|
|
|
|
sh "cp -r main/_site/. /var/www/ellpeck"
|
2020-04-02 21:54:20 +02:00
|
|
|
}
|
|
|
|
}
|
2020-02-25 13:10:28 +01:00
|
|
|
}
|
|
|
|
}
|