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' } } }