Web/Jenkinsfile
Ell a1c0452607
All checks were successful
Web/pipeline/head This commit looks good
Jenkins
Ellpeck/Web/pipeline/head This commit looks good
web label
2023-04-11 14:31:21 +02:00

25 lines
414 B
Groovy

pipeline {
agent { label 'web' }
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"
}
}
}
}