diff --git a/Jenkinsfile b/Jenkinsfile index 7f7d6f9b..1cec41ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,14 +4,14 @@ pipeline { stage('compile') { steps { echo 'compiling..' - git url: 'https://github.com/lerndevops/DevOpsClassCodes' - sh script: '/opt/apache-maven-3.8.1/bin/mvn compile' + git 'https://github.com/shubhsharm/samplejavaapp' + sh script: '/opt/apache-maven-3.8.4/bin/mvn compile' } } stage('codereview-pmd') { steps { echo 'codereview..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn -P metrics pmd:pmd' + sh script: '/opt/apache-maven-3.8.4/bin/mvn -P metrics pmd:pmd' } post { success { @@ -22,7 +22,7 @@ pipeline { stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn test' + sh script: '/opt/apache-maven-3.8.4/bin/mvn test' } post { success { @@ -30,10 +30,10 @@ pipeline { } } } - stage('codecoverate') { + stage('codecoverage') { steps { echo 'codecoverage..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' + sh script: '/opt/apache-maven-3.8.4/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' } post { success { @@ -44,7 +44,7 @@ pipeline { stage('package') { steps { echo 'package......' - sh script: '/opt/apache-maven-3.8.1/bin/mvn package' + sh script: '/opt/apache-maven-3.8.4/bin/mvn package' } } } diff --git a/README.md b/README.md index 9a199bea..bf87a456 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -Sample Java Applicaiton V3.2 -asd +Sample Java Applicaiton V3.5 +This is for testing diff --git a/deploy/deploy-kube.yml b/deploy/deploy-kube.yml index 3972f5c0..51274fb6 100755 --- a/deploy/deploy-kube.yml +++ b/deploy/deploy-kube.yml @@ -14,7 +14,7 @@ echo "No app service found" fi - name: deploy app - shell: kubectl create deploy myapp --image=lerndevops/samplejavaapp:{{ build }} + shell: kubectl create deploy myapp --image=08170/sampleapp:{{ build }} - name: increase replicas shell: kubectl scale deploy myapp --replicas=2 - name: deploy service