ci: fix publish steps by adding builder folder

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-03-14 18:40:22 +01:00
parent f418298b7b
commit c074087f92
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 11 additions and 7 deletions

18
Jenkinsfile vendored
View File

@ -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}/
"""
}
}
}
}