fine I give up
Web/pipeline/head There was a failure building this commit Details

This commit is contained in:
Ell 2021-03-17 19:46:58 +01:00
parent c87e5ad8a8
commit 15d6f5f674
1 changed files with 11 additions and 8 deletions

19
Jenkinsfile vendored
View File

@ -1,18 +1,21 @@
pipeline {
agent {
node {
label 'main'
customWorkspace '/var/www/ellpeck'
}
}
agent any
stages {
stage('Pull') {
when {
branch 'master'
}
steps {
sh '''cd /var/www/ellpeck
git pull'''
}
}
stage('Node') {
when {
branch 'master'
}
steps {
sh '''ls
cd /var/www/ellpeck/node
sh '''cd /var/www/ellpeck/node
npm install
node blog.js
node rss.js'''