Web/Jenkinsfile
Ell 35bf3258d5
All checks were successful
Web/pipeline/head This commit looks good
separate out the commands
2021-07-09 03:23:52 +02:00

30 lines
No EOL
541 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
when {
branch 'master'
}
steps {
sh '''cd main
bundle
bundle exec jekyll build'''
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
sh "rm -rf ${env.DEST}/*"
sh "cp -r main/_site/. ${env.DEST}"
sh "cp -r actaddmanual ${env.DEST}"
sh "cp -r commissions ${env.DEST}"
}
}
}
environment {
DEST = "/var/www/ellpeck"
}
}