GeezerVison is showing github.com — gradle · orgname99/samplejavaapp@d67a3e5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard Collapse file
Copy file name to clipboardExpand all lines: gradle/wrapper/gradle-wrapper.properties -5Lines changed: 0 additions & 5 deletions Collapse file
Copy file name to clipboardExpand all lines: gradlew -183Lines changed: 0 additions & 183 deletions Collapse file
Copy file name to clipboardExpand all lines: gradlew.bat -100Lines changed: 0 additions & 100 deletions Collapse file
Copy file name to clipboardExpand all lines: jenkins/CICD.gvy +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,14 +6,14 @@ pipeline { |
6 | 6 | // step1 |
7 | 7 | echo 'compiling..' |
8 | 8 | git url: 'https://github.com/lerndevops/samplejavaapp' |
9 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn compile' |
| 9 | + sh script: '/opt/maven/bin/mvn compile' |
10 | 10 | } |
11 | 11 | } |
12 | 12 | stage('codereview-pmd') { |
13 | 13 | steps { |
14 | 14 | // step2 |
15 | 15 | echo 'codereview..' |
16 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn -P metrics pmd:pmd' |
| 16 | + sh script: '/opt/maven/bin/mvn -P metrics pmd:pmd' |
17 | 17 | } |
18 | 18 | post { |
19 | 19 | success { |
@@ -25,7 +25,7 @@ pipeline { |
25 | 25 | steps { |
26 | 26 | // step3 |
27 | 27 | echo 'unittest..' |
28 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn test' |
| 28 | + sh script: '/opt/maven/bin/mvn test' |
29 | 29 | } |
30 | 30 | post { |
31 | 31 | success { |
@@ -41,7 +41,7 @@ pipeline { |
41 | 41 | steps { |
42 | 42 | // step4 |
43 | 43 | echo 'codecoverage..' |
44 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' |
| 44 | + sh script: '/opt/maven/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' |
45 | 45 | } |
46 | 46 | post { |
47 | 47 | success { |
@@ -53,7 +53,7 @@ pipeline { |
53 | 53 | steps { |
54 | 54 | // step5 |
55 | 55 | echo 'package......' |
56 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn package' |
| 56 | + sh script: '/opt/maven/bin/mvn package' |
57 | 57 | } |
58 | 58 | } |
59 | 59 | stage('build & push docker image') { |
|
Collapse file
Copy file name to clipboardExpand all lines: jenkins/Jenkinsfile-CI +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,13 +5,13 @@ pipeline { |
5 | 5 | steps { |
6 | 6 | echo 'compiling..' |
7 | 7 | git url: 'https://github.com/lerndevops/samplejavaapp' |
8 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn compile' |
| 8 | + sh script: '/opt/maven/bin/mvn compile' |
9 | 9 | } |
10 | 10 | } |
11 | 11 | stage('codereview-pmd') { |
12 | 12 | steps { |
13 | 13 | echo 'codereview..' |
14 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn -P metrics pmd:pmd' |
| 14 | + sh script: '/opt/maven/bin/mvn -P metrics pmd:pmd' |
15 | 15 | } |
16 | 16 | post { |
17 | 17 | success { |
@@ -22,7 +22,7 @@ pipeline { |
22 | 22 | stage('unit-test') { |
23 | 23 | steps { |
24 | 24 | echo 'unittest..' |
25 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn test' |
| 25 | + sh script: '/opt/maven/bin/mvn test' |
26 | 26 | } |
27 | 27 | post { |
28 | 28 | success { |
@@ -33,7 +33,7 @@ pipeline { |
33 | 33 | stage('codecoverate') { |
34 | 34 | steps { |
35 | 35 | echo 'codecoverage..' |
36 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' |
| 36 | + sh script: '/opt/maven/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' |
37 | 37 | } |
38 | 38 | post { |
39 | 39 | success { |
@@ -44,7 +44,7 @@ pipeline { |
44 | 44 | stage('package') { |
45 | 45 | steps { |
46 | 46 | echo 'package......' |
47 | | - sh script: '/opt/apache-maven-3.8.4/bin/mvn package' |
| 47 | + sh script: '/opt/maven/bin/mvn package' |
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
|