Web/Jenkinsfile
Ell c6bd12a412
Some checks failed
Web/pipeline/head There was a failure building this commit
also copy the manual and commissions
2021-07-09 03:20:34 +02:00

29 lines
539 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}/*
cp -r main/_site/. ${env.DEST}
cp -r actaddmanual ${env.DEST}
cp -r commissions ${env.DEST}'''
}
}
}
environment {
DEST = "/var/www/ellpeck"
}
}