Web/Jenkinsfile
Ell 2935dabcfc
All checks were successful
Web/pipeline/head This commit looks good
change directory structure slightly
2021-08-10 22:11:29 +02:00

24 lines
No EOL
405 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 /var/www/ellpeck/*"
sh "cp -r main/_site/. /var/www/ellpeck"
}
}
}
}