ci: fix publish steps by adding builder folder
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f418298b7b
commit
c074087f92
|
@ -55,8 +55,10 @@ pipeline {
|
||||||
stage('Publish Prod') {
|
stage('Publish Prod') {
|
||||||
when { expression { env.GIT_BRANCH ==~ /.*master/ } }
|
when { expression { env.GIT_BRANCH ==~ /.*master/ } }
|
||||||
steps {
|
steps {
|
||||||
sshagent(credentials: ['status-im-auto-ssh']) {
|
dir('builder') {
|
||||||
sh "ghp-import -p public"
|
sshagent(credentials: ['status-im-auto-ssh']) {
|
||||||
|
sh "ghp-import -p public"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,11 +66,13 @@ pipeline {
|
||||||
stage('Publish Devel') {
|
stage('Publish Devel') {
|
||||||
when { expression { env.GIT_BRANCH ==~ /.*develop/ } }
|
when { expression { env.GIT_BRANCH ==~ /.*develop/ } }
|
||||||
steps {
|
steps {
|
||||||
sshagent(credentials: ['jenkins-ssh']) {
|
dir('builder') {
|
||||||
sh """
|
sshagent(credentials: ['jenkins-ssh']) {
|
||||||
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \
|
sh """
|
||||||
${env.DEV_HOST}:/var/www/${env.DEV_SITE}/
|
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \
|
||||||
"""
|
${env.DEV_HOST}:/var/www/${env.DEV_SITE}/
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue