diff --git a/Jenkinsfile b/Jenkinsfile index 96f0c7d..4dd3211 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { stage('Checkout') { steps { dir("${env.WORKDIR}") { - sshagent(credentials: ['putra_pass']) { + withEnv(["GIT_SSH_COMMAND=${env.GIT_SSH_COMMAND}"]) { sh "git checkout staging" sh "git pull origin staging" } @@ -23,7 +23,7 @@ pipeline { stage('Build Assets') { steps { - dir("${env.WORKDIR}") { + dir("${env.DASHBOARD}") { sh "npm install" sh "npm run build" }