Skip to content

Commit

Permalink
Create Jenkinsfile_paypal28
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 authored Jun 25, 2022
1 parent f607df0 commit e806297
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Jenkinsfile_paypal28
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: '[email protected]'
}
*/
}

0 comments on commit e806297

Please sign in to comment.