Skip to content

Commit

Permalink
Jenkinsfile: update dev site hostname
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Sep 23, 2021
1 parent c63e637 commit 7a058dd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ pipeline {
environment {
GIT_USER = 'status-im-auto'
GIT_MAIL = '[email protected]'
/* Dev site deployment. */
DEV_SITE = 'dev.nimbus.team'
DEV_HOST = '[email protected]'
SCP_OPTS = 'StrictHostKeyChecking=no'
}

stages {
Expand Down Expand Up @@ -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/. \
[email protected]:/var/www/dev-nimbus/
'''
sh """
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete public/. \
${env.DEV_HOST}:/var/www/${env.DEV_SITE}/
"""
}
} }
}
Expand Down

0 comments on commit 7a058dd

Please sign in to comment.