-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
25 lines (19 loc) · 1.12 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pipeline {
agent any
stages {
stage ('Deploying in Prod Environment: production') {
steps {
echo 'Deploying the application to production...'
sshPublisher(publishers: [sshPublisherDesc(configName: 'centos-wp', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '''
GITUSER=$(cat gituser.txt)
GITPASSWD=$(cat gittoken.txt)
USERPASSWD=$(cat password.txt)
cd /var/www/html/signature-generator-new/
pwd
hostname
echo $USERPASSWD | sudo -S git pull https://$GITUSER:[email protected]/BabbanGonaDev/signature-generator-new.git
''', execTimeout: 2000000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '.', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '*.tar.gz')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)])
}
}
}
}