From 7a058dd5de4674fa899ea4408245ddb20f0b0538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 23 Sep 2021 18:39:17 +0200 Subject: [PATCH] Jenkinsfile: update dev site hostname MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- Jenkinsfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d751e00..af053af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,10 @@ pipeline { environment { GIT_USER = 'status-im-auto' 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 { @@ -50,10 +54,10 @@ pipeline { when { expression { !GIT_BRANCH.endsWith('master') } } steps { script { sshagent(credentials: ['jenkins-ssh']) { - sh ''' - rsync -e 'ssh -o StrictHostKeyChecking=no' -r --delete public/. \ - jenkins@node-01.do-ams3.proxy.misc.statusim.net:/var/www/dev-nimbus/ - ''' + sh """ + rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \ + ${env.DEV_HOST}:/var/www/${env.DEV_SITE}/ + """ } } } }