diff --git a/Jenkinsfile b/Jenkinsfile index fa1dadd..f52fd25 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'''