Web/Jenkinsfile
Ell 34db8cca03
All checks were successful
Web/pipeline/head This commit looks good
organized gitignore and presskit a bit better
2021-07-07 04:38:35 +02:00

36 lines
No EOL
696 B
Groovy

pipeline {
agent any
stages {
stage('Pull') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck
git fetch
git checkout ${GIT_COMMIT} -f'''
}
}
stage('Node') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck/node
npm install
node blog.js
node rss.js'''
}
}
stage('Press') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck/press/src
npm install
npx presskit build --output .. --pretty-links --collapse-menu'''
}
}
}
}