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,15 +55,18 @@ pipeline {
|
||||||
stage('Publish Prod') {
|
stage('Publish Prod') {
|
||||||
when { expression { env.GIT_BRANCH ==~ /.*master/ } }
|
when { expression { env.GIT_BRANCH ==~ /.*master/ } }
|
||||||
steps {
|
steps {
|
||||||
|
dir('builder') {
|
||||||
sshagent(credentials: ['status-im-auto-ssh']) {
|
sshagent(credentials: ['status-im-auto-ssh']) {
|
||||||
sh "ghp-import -p public"
|
sh "ghp-import -p public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Publish Devel') {
|
stage('Publish Devel') {
|
||||||
when { expression { env.GIT_BRANCH ==~ /.*develop/ } }
|
when { expression { env.GIT_BRANCH ==~ /.*develop/ } }
|
||||||
steps {
|
steps {
|
||||||
|
dir('builder') {
|
||||||
sshagent(credentials: ['jenkins-ssh']) {
|
sshagent(credentials: ['jenkins-ssh']) {
|
||||||
sh """
|
sh """
|
||||||
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \
|
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \
|
||||||
|
@ -73,6 +76,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
cleanup { cleanWs() }
|
cleanup { cleanWs() }
|
||||||
|
|
Loading…
Reference in New Issue