Skip to content

Commit 17eeba1

Browse files
committed
fix rollback Jenkins configuration
Signed-off-by: Juraj Kubelka <juraj.kubelka.yuyv8@slmail.me>
1 parent 7724166 commit 17eeba1

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎scripts/rollback/Jenkinsfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pipeline {
99
withCredentials([sshUserPrivateKey(credentialsId: '31ee68a9-4d6c-48f3-9769-a2b8b50452b0', keyFileVariable: 'identity', passphraseVariable: '', usernameVariable: 'userName')]) {
1010
def remote = [:]
1111
remote.name = 'deploy'
12-
remote.host = 'ec2-18-197-145-81.eu-central-1.compute.amazonaws.com'
12+
remote.host = 'ip-172-31-37-111.eu-central-1.compute.internal'
1313
remote.user = userName
1414
remote.identityFile = identity
1515
remote.allowAnyHosts = true

‎scripts/rollback/rollback.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
2-
set -e
2+
set -o xtrace # print each command to stderr after expanding variables/substitutions, prefixed with `+` (or PS4)
3+
set -e # exit immediately if any command returns a non-zero exist status
34

4-
export GTfolder=/var/www/html/gt
5+
export GTfolder=/data/www/html/gt
56

67
cd $GTfolder
78

0 commit comments

Comments
 (0)