GeezerVison is showing github.com — Update jenkinsfile-linux · chobi149/samplejavaapp@9eddf5e
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 clipboardExpand all lines: jenkinsfile-linux +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,12 +5,12 @@ pipeline { |
5 | 5 | stage('compile') { |
6 | 6 | steps { |
7 | 7 | git url: 'https://github.com/lerndevops/samplejavaapp.git' |
8 | | - sh script: 'mvn compile' |
| 8 | + sh script: '/opt/apache-maven-3.6.3/bin/mvn compile' |
9 | 9 | } |
10 | 10 | } |
11 | 11 | stage('codereview-pmd') { |
12 | 12 | steps { |
13 | | - sh script: 'mvn -P metrics pmd:pmd' |
| 13 | + sh script: '/opt/apache-maven-3.6.3/bin/mvn -P metrics pmd:pmd' |
14 | 14 | } |
15 | 15 | post { |
16 | 16 | success { |
@@ -20,7 +20,7 @@ pipeline { |
20 | 20 | } |
21 | 21 | stage('unit-test') { |
22 | 22 | steps { |
23 | | - sh script: 'mvn test' |
| 23 | + sh script: '/opt/apache-maven-3.6.3/bin/mvn test' |
24 | 24 | } |
25 | 25 | post { |
26 | 26 | success { |
@@ -30,7 +30,7 @@ pipeline { |
30 | 30 | } |
31 | 31 | stage('metric-check') { |
32 | 32 | steps { |
33 | | - sh script: 'mvn cobertura:cobertura -Dcobertura.report.format=xml' |
| 33 | + sh script: '/opt/apache-maven-3.6.3/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' |
34 | 34 | } |
35 | 35 | post { |
36 | 36 | success { |
@@ -40,7 +40,7 @@ pipeline { |
40 | 40 | } |
41 | 41 | stage('package') { |
42 | 42 | steps { |
43 | | - sh script: 'mvn clean package' |
| 43 | + sh script: '/opt/apache-maven-3.6.3/bin/mvn clean package' |
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |
|