From c074087f926b39f4d32d55834a74cf627b098d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 14 Mar 2023 18:40:22 +0100 Subject: [PATCH] ci: fix publish steps by adding builder folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- Jenkinsfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bef86fa..a079ff0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,8 +55,10 @@ pipeline { stage('Publish Prod') { when { expression { env.GIT_BRANCH ==~ /.*master/ } } steps { - sshagent(credentials: ['status-im-auto-ssh']) { - sh "ghp-import -p public" + dir('builder') { + sshagent(credentials: ['status-im-auto-ssh']) { + sh "ghp-import -p public" + } } } } @@ -64,11 +66,13 @@ pipeline { stage('Publish Devel') { when { expression { env.GIT_BRANCH ==~ /.*develop/ } } steps { - sshagent(credentials: ['jenkins-ssh']) { - sh """ - rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \ - ${env.DEV_HOST}:/var/www/${env.DEV_SITE}/ - """ + dir('builder') { + sshagent(credentials: ['jenkins-ssh']) { + sh """ + rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \ + ${env.DEV_HOST}:/var/www/${env.DEV_SITE}/ + """ + } } } }