From db36d315d7dee7515c948c3fe39b9beba5f85a39 Mon Sep 17 00:00:00 2001 From: Ravi-dotcom-eng Date: Mon, 24 Mar 2025 12:15:56 +0530 Subject: [PATCH] Update Jenkinsfile-2 --- Jenkinsfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f722447..0a60a79 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,13 +2,9 @@ pipeline { agent any tools { - maven 'local_maven' + maven 'MAVEN' } - parameters { - string(name: 'staging_server', defaultValue: '13.232.37.20', description: 'Remote Staging Server') - } - -stages{ + stages{ stage('Build'){ steps { sh 'mvn clean package' @@ -25,7 +21,7 @@ stages{ parallel{ stage ("Deploy to Staging"){ steps { - sh "scp -v -o StrictHostKeyChecking=no **/*.war root@${params.staging_server}:/opt/tomcat/webapps/" + deploy adapters: [tomcat9(credentialsId: 'tom', path: '', url: 'http://35.92.109.243:8080/')], contextPath: null, war: '**/*.war' } } }