diff --git a/Jenkinsfile b/Jenkinsfile index 84e2995..96f0c7d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,14 +6,17 @@ pipeline { COMPOSER_HOME = "${WORKSPACE}/.composer" DASHBOARD = '/var/www/lpj' WORKDIR = '/var/www/lpj/Modules/Lpj' + GIT_SSH_COMMAND = 'ssh -i ~/.ssh/for_gitea -o StrictHostKeyChecking=no' } stages { stage('Checkout') { steps { dir("${env.WORKDIR}") { - sh "git checkout staging" - sh "git pull origin staging" + sshagent(credentials: ['putra_pass']) { + sh "git checkout staging" + sh "git pull origin staging" + } } } }