Web/Jenkinsfile

24 lines
405 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-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
}
}