diff --git a/Jenkinsfile b/Jenkinsfile index bd70741..ab7ceb8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,12 +43,14 @@ pipeline { echo 'Deploying to test environment web servers...' withCredentials([sshUserPrivateKey(credentialsId: '6413826d-79f6-4d03-9902-ee1b73a96efd', keyFileVariable: 'JENKINS_SSH_KEY', passphraseVariable: '', usernameVariable: 'SERVER_USER')]) { // Deploy account application and its associated libraries - sh 'scp -r dist/shared root@192.81.211.55:/var/www/' - sh 'scp -r dist/globalnav root@192.81.211.55:/var/www/' - sh 'scp -r dist/page-not-found root@192.81.211.55:/var/www/' - sh 'scp -r dist/account root@192.81.211.55:/var/www/' + echo 'Deploying account application...' + sh 'scp -r dist/shared root@192.241.152.213:/var/www/' + sh 'scp -r dist/globalnav root@192.241.152.213:/var/www/' + sh 'scp -r dist/page-not-found root@192.241.152.213:/var/www/' + sh 'scp -r dist/account root@192.241.152.213:/var/www/' // Deploy single sign on application and its associated libraries + echo 'Deploying single sign on application...' sh 'scp -r dist/shared root@198.199.90.118:/var/www/' sh 'scp -r dist/globalnav root@198.199.90.118:/var/www/' sh 'scp -r dist/page-not-found root@198.199.90.118:/var/www/' @@ -81,12 +83,14 @@ pipeline { echo 'Deploying to production environment web servers...' withCredentials([sshUserPrivateKey(credentialsId: '6413826d-79f6-4d03-9902-ee1b73a96efd', keyFileVariable: 'JENKINS_SSH_KEY', passphraseVariable: '', usernameVariable: 'SERVER_USER')]) { // Deploy account application and its associated libraries + echo 'Deploying account application...' sh 'scp -r dist/shared root@???:/var/www/' sh 'scp -r dist/globalnav root@???:/var/www/' sh 'scp -r dist/page-not-found root@???:/var/www/' sh 'scp -r dist/account root@???:/var/www/' // Deploy single sign on application and its associated libraries + echo 'Deploying single sign on application...' sh 'scp -r dist/shared root@???:/var/www/' sh 'scp -r dist/globalnav root@???:/var/www/' sh 'scp -r dist/page-not-found root@???:/var/www/'