diff --git a/Jenkinsfile b/Jenkinsfile index f52fd25..928a746 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,16 @@ pipeline { - agent any - stages { - stage('Pull') { - when { - branch 'master' - } - steps { - sh '''cd /var/www/ellpeck - git pull''' - } + agent { + node { + customWorkspace '/var/www/ellpeck' } + } + stages { stage('Node') { when { branch 'master' } steps { - sh '''cd /var/www/ellpeck/node + sh '''cd node npm install node blog.js node rss.js'''