diff --git a/Jenkisfile3 b/Jenkisfile3 new file mode 100644 index 00000000..89829b96 --- /dev/null +++ b/Jenkisfile3 @@ -0,0 +1,23 @@ +pipeline { + agent any + stages { + stage('Build Application') { + steps { + sh 'mvn -f pom.xml clean package' + } + post { + success { + echo "Now Archiving the Artifacts....." + archiveArtifacts artifacts: '**/*.war' + } + } + } + stage('Deploy to Staging Environment'){ + steps{ + build job: 'deploy-application-staging-environment-pipeline' + + } + + } + } +} diff --git a/pom.xml b/pom.xml index b07c1068..eb5a89f5 100755 --- a/pom.xml +++ b/pom.xml @@ -19,26 +19,14 @@ java-tomcat-maven-example - org.apache.maven.plugins - maven-dependency-plugin - 2.3 - - - package - copy - - - - com.github.jsimone - webapp-runner - 8.5.11.3 - webapp-runner.jar - - - - - - - + org.apache.maven.plugins + maven-war-plugin + 3.3.1 + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 +