diff --git a/Jenkinsfile b/Jenkinsfile index f722447..1dc05a5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,17 +1,17 @@ +@Library ('myLibrary')_ pipeline { agent any tools { - maven 'local_maven' - } - parameters { - string(name: 'staging_server', defaultValue: '13.232.37.20', description: 'Remote Staging Server') + maven 'localMaven' } stages{ stage('Build'){ steps { - sh 'mvn clean package' + script{ + build_demo.java() + } } post { success { @@ -25,7 +25,7 @@ stages{ parallel{ stage ("Deploy to Staging"){ steps { - sh "scp -v -o StrictHostKeyChecking=no **/*.war root@${params.staging_server}:/opt/tomcat/webapps/" + echo "Deploy to Staging" } } } diff --git a/src/main/webapp/template.xhtml b/src/main/webapp/template.xhtml index 8151566..cbcc377 100644 --- a/src/main/webapp/template.xhtml +++ b/src/main/webapp/template.xhtml @@ -10,7 +10,7 @@ -

DevOps class - Ranjit Swain - Version: 2.7.2 - Batch7

+

DevOps class - Ranjit Swain - Version: 2.8.1 - Batch-11

Just an example! - Webhook