forked from LandmakTechnology/maven-web-application
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Jenkinsfile_paypal28
37 lines (36 loc) · 1.19 KB
/
Jenkinsfile_paypal28
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
26
27
28
29
30
31
32
33
34
35
36
37
node{
def mavenHome = tool name: 'maven3.8.6'
stage('1cloneCode'){
sh "echo running a software build and deployment project for payPal"
git "https://github.com/LandmakTechnology/maven-web-application"
}
stage('2Test&Build'){
sh "${mavenHome}/bin/mvn install"
}
/*
stage('3CodeQuality'){
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4UploadArtifacts'){
sh "${mavenHome}/bin/mvn deploy"
}
stage('5deploy_uat'){
//sh "scp "
deploy adapters: [tomcat9(credentialsId: 'tomcatCredentials', path: '', url: 'http://18.119.10.206:8080/')], contextPath: null, war: 'target/*war'
}
stage('6Approval'){
timeout(time:9, unit:'HOURS') {
input message: 'Application ready for deployment, Please review and approve'
}
}
stage('7deploy_prod'){
deploy adapters: [tomcat9(credentialsId: 'tomcatCredentials', path: '', url: 'http://18.119.10.206:8080/')], contextPath: null, war: 'target/*war'
}
stage('8Notification'){
// Pipeline Syntax
emailext body: '''Build status for frontend application.
Regards,
Landmark Technologies''', recipientProviders: [buildUser(), developers(), contributor()], subject: 'Build Status', to: 'paypal-team@gmail.com'
}
*/
}