Skip to content

Commit a12381a

Browse files
author
신현일/클라우드개발센터/NE
authored
Create Jenkinsfile
1 parent 9e489de commit a12381a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Jenkinsfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
properties([parameters([string(defaultValue: 'test', description: 'test or verify', name: 'testType', trim: false)])])
2+
3+
node {
4+
checkout scm
5+
6+
stage('build') {
7+
//withEnv(["PATH+MAVEN=${tool 'apache-maven-3.3.9'}/bin"]) {
8+
withEnv(["PATH+MAVEN=${tool 'apache-maven-3.6.0'}/bin"]) {
9+
sh 'mvn --version'
10+
sh "mvn clean ${params.testType}"
11+
}
12+
}
13+
14+
stage('report') {
15+
junit 'target/surefire-reports/*.xml'
16+
jacoco execPattern: 'target/**.exec'
17+
}
18+
}

0 commit comments

Comments
 (0)