Skip to content

Commit

Permalink
Update Jenkinsfile-Sep23-scripted
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 authored Sep 16, 2023
1 parent 81bf6bf commit 436f78d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile-Sep23-scripted
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ node{
//edit pom.xml propertiesTAG with SonarQube server details
}
stage('4.UploadArtifacts'){
sh "${mavenHome}/bin/mvn deploy"
//sh "${mavenHome}/bin/mvn deploy"
//edit pom.xml distributionManagement TAG with repository details
//edit settings.xml with nexus-user login credentials
}
stage('5.Deploy2UAT'){
//use deploy-to-container plugin via pipeline syntax
deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'
//deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'
//Deploying [/var/lib/jenkins/workspace/tesla-app-pipeline/target/tesla.war]
}
stage('6.6ManualApproval'){
sh "echo 'Please review the application performance' "
timeout(time:600, unit:'MINUTES') {
input message: 'Application ready for deployment, Please review and approve'
//timeout(time:600, unit:'MINUTES') {
//input message: 'Application ready for deployment, Please review and approve'
}
}
stage('7.Deploy2Prod'){
sh "echo 'Deploy application to the customers/production' "
deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'
//deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'

}
stage('8.APM'){
Expand Down

0 comments on commit 436f78d

Please sign in to comment.