From e806297f04396afe14dd9aa695b971d8da6d0a0a Mon Sep 17 00:00:00 2001 From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com> Date: Sat, 25 Jun 2022 11:01:18 -0400 Subject: [PATCH] Create Jenkinsfile_paypal28 --- Jenkinsfile_paypal28 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Jenkinsfile_paypal28 diff --git a/Jenkinsfile_paypal28 b/Jenkinsfile_paypal28 new file mode 100644 index 0000000000..9a6b8f88b4 --- /dev/null +++ b/Jenkinsfile_paypal28 @@ -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: 'paypal-team@gmail.com' + } +*/ +}