Skip to content

Commit d67a3e5

Browse files
committed
gradle
1 parent 1562e59 commit d67a3e5

File tree

10 files changed

+22
-310
lines changed

10 files changed

+22
-310
lines changed

gradle/wrapper/gradle-wrapper.jar

-57.3 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

gradlew

Lines changed: 0 additions & 183 deletions
This file was deleted.

gradlew.bat

Lines changed: 0 additions & 100 deletions
This file was deleted.

CICD.gvy renamed to jenkins/CICD.gvy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ pipeline {
66
// step1
77
echo 'compiling..'
88
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'
1010
}
1111
}
1212
stage('codereview-pmd') {
1313
steps {
1414
// step2
1515
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'
1717
}
1818
post {
1919
success {
@@ -25,7 +25,7 @@ pipeline {
2525
steps {
2626
// step3
2727
echo 'unittest..'
28-
sh script: '/opt/apache-maven-3.8.4/bin/mvn test'
28+
sh script: '/opt/maven/bin/mvn test'
2929
}
3030
post {
3131
success {
@@ -41,7 +41,7 @@ pipeline {
4141
steps {
4242
// step4
4343
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'
4545
}
4646
post {
4747
success {
@@ -53,7 +53,7 @@ pipeline {
5353
steps {
5454
// step5
5555
echo 'package......'
56-
sh script: '/opt/apache-maven-3.8.4/bin/mvn package'
56+
sh script: '/opt/maven/bin/mvn package'
5757
}
5858
}
5959
stage('build & push docker image') {

Jenkinsfile renamed to jenkins/Jenkinsfile-CI

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ pipeline {
55
steps {
66
echo 'compiling..'
77
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'
99
}
1010
}
1111
stage('codereview-pmd') {
1212
steps {
1313
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'
1515
}
1616
post {
1717
success {
@@ -22,7 +22,7 @@ pipeline {
2222
stage('unit-test') {
2323
steps {
2424
echo 'unittest..'
25-
sh script: '/opt/apache-maven-3.8.4/bin/mvn test'
25+
sh script: '/opt/maven/bin/mvn test'
2626
}
2727
post {
2828
success {
@@ -33,7 +33,7 @@ pipeline {
3333
stage('codecoverate') {
3434
steps {
3535
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'
3737
}
3838
post {
3939
success {
@@ -44,7 +44,7 @@ pipeline {
4444
stage('package') {
4545
steps {
4646
echo 'package......'
47-
sh script: '/opt/apache-maven-3.8.4/bin/mvn package'
47+
sh script: '/opt/maven/bin/mvn package'
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)