Web/Jenkinsfile
Ell d5c0de52f0
Some checks failed
Web/pipeline/head There was a failure building this commit
added presskit
2021-06-06 20:40:19 +02:00

35 lines
666 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
presskit build --output .. --pretty-links --collapse-menu'''
}
}
}
}