Skip to content
Open

Dev #17

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion JenkinsDeclarativePipelineScript
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pipeline{
agent any
tools {
maven "maven3.8.4"
maven "maven3.8.5"
}
triggers {
pollSCM '* * * * * '
Expand Down
2 changes: 1 addition & 1 deletion JenkinsDeclarativePipelineScriptMarch2022
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pipeline{
agent any
tools{
maven "maven3.8.4"
maven "maven3.8.5"
}
stages{
stage('1.clone'){
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node{
def MHD = tool name: "maven3.8.4"
def MHD = tool name: "maven3.8.5"
stage('code'){
git branch: 'development', url: 'https://github.com/LandmakTechnology/web-app'
}
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile-scripted
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//scripted pipeline
node{
def MHD = tool name: "maven3.8.4"
def MHD = tool name: "maven3.8.5"
stage('1.Initiation'){
sh "echo Start of td deployment"
}
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile27
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node{
def mavenHome = tool name: 'maven3.8.4'
def mavenHome = tool name: 'maven3.8.5'
stage('1.Clone'){
git branch: 'master', credentialsId: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
}
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile_boa
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node{
def mavenHome = tool name: 'maven3.8.4'
def mavenHome = tool name: 'maven3.8.5'
stage('1.Clone'){
git branch: 'master', credentialsId: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
}
Expand Down
47 changes: 47 additions & 0 deletions jenkins27
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
node{
def mavenHome = tool name: 'maven3.8.5'
stage('1.Clone'){
git branch: 'master', credentialsId: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
}
stage('2.MavenBuild'){
sh "${mavenHome}/bin/mvn clean package"
// bat 'mvn package'
}
/* stage('3.CodeQuality'){
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4.UploadArtifacts'){
sh "${mavenHome}/bin/mvn deploy"
}
stage('6.Deploy2dev'){
deploy adapters: [tomcat9(credentialsId: 'Tomcat_Credentials', path: '', url: 'http://18.207.210.70:8080/')], contextPath: null, war: 'target/web-app.war'
}
stage('5.Deploy2uat'){
sshagent(['agentcredentials']) {
// sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@172.31.89.218:/opt/tomcat9/webapps/uat.war"

}

}
stage('7.approval'){
timeout(time:8, unit:'HOURS'){
input message: 'Please approve deployment to Production'
}
}
stage('8.Deploy2prod'){
sshagent(['agentcredentials']) {
sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@172.31.89.218:/opt/tomcat9/webapps/app.war"

}

}
stage('9.EmailAlerts'){
emailext body: '''Hi

Build status for boa app.

Regards,
Landmark Technologies''', recipientProviders: [developers(), requestor()], subject: 'Project status', to: 'boa@gmail.com'
}
*/
}