Jenkinsfile: update dev site hostname
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
c63e63754c
commit
7a058dd5de
|
@ -13,6 +13,10 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
GIT_USER = 'status-im-auto'
|
GIT_USER = 'status-im-auto'
|
||||||
GIT_MAIL = 'auto@status.im'
|
GIT_MAIL = 'auto@status.im'
|
||||||
|
/* Dev site deployment. */
|
||||||
|
DEV_SITE = 'dev.nimbus.team'
|
||||||
|
DEV_HOST = 'jenkins@node-01.do-ams3.sites.misc.statusim.net'
|
||||||
|
SCP_OPTS = 'StrictHostKeyChecking=no'
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -50,10 +54,10 @@ pipeline {
|
||||||
when { expression { !GIT_BRANCH.endsWith('master') } }
|
when { expression { !GIT_BRANCH.endsWith('master') } }
|
||||||
steps { script {
|
steps { script {
|
||||||
sshagent(credentials: ['jenkins-ssh']) {
|
sshagent(credentials: ['jenkins-ssh']) {
|
||||||
sh '''
|
sh """
|
||||||
rsync -e 'ssh -o StrictHostKeyChecking=no' -r --delete public/. \
|
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \
|
||||||
jenkins@node-01.do-ams3.proxy.misc.statusim.net:/var/www/dev-nimbus/
|
${env.DEV_HOST}:/var/www/${env.DEV_SITE}/
|
||||||
'''
|
"""
|
||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue