diff --git a/Jenkinsfile b/Jenkinsfile index 148cc27..253cc48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,13 @@ node{ stage('mavenBuild') { sh "${mavenHome}/bin/mvn clean package" } -/* + +// multi line comment in groovy script + /* + Multi branch jenkins job + */ + /* + stage('CodeQuality') { sh "${mavenHome}/bin/mvn sonar:sonar" // execute the CodeQuality report with sonar diff --git a/hosts b/hosts new file mode 100644 index 0000000..0509e9a --- /dev/null +++ b/hosts @@ -0,0 +1,2 @@ +[tomcat] +9.9.23.9.234 diff --git a/pom.xml b/pom.xml index 48d6c67..cab97e9 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1-SNAPSHOT + 1.1.1-SNAPSHOT maven-web-application @@ -21,8 +21,10 @@ 5.1.2.RELEASE 4.11 1.2.17 - http:3.238.135.186:9000/ - admin + http:3.238.135.186:6000/ + http://172.31.82.116:7000// + + admin admin UTF-8 UTF-8 @@ -97,13 +99,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://44.192.81.238:8888/mylandmarktech/repository/ebay-java-app-releases/ + http://44.201.211.49:8081/repository/TD_release/ nexus Landmark Technologies Snapshot Nexus Repository - http://44.192.81.238:8888/mylandmarktech/repository/ebay-java-app-snapshot/ + http://44.201.211.49:8081/repository/TD_snapshot/ diff --git a/tomcat.yml b/tomcat.yml new file mode 100644 index 0000000..8e4d860 --- /dev/null +++ b/tomcat.yml @@ -0,0 +1,5 @@ +--- +hosts: tomcat +task: + - name: copy artifact to tomcat server + copy: src=/var/lib/jenkins/workspace/jen-ans-tom/target/*.war dest=dest: /opt/tomcat9/webapps/