Skip to content

Commit d8426eb

Browse files
authored
Update Jenkinsfile
1 parent 109fe0e commit d8426eb

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

Jenkinsfile

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
pipeline{
1+
pipeline {
22
agent any
3-
tools{
3+
tools {
44
maven "MAVEN"
55
}
6-
stages{
7-
stage("build"){
8-
steps{
6+
stages {
7+
stage("build") {
8+
steps {
99
bat "mvn clean package"
1010
}
1111
}
12-
stage("test"){
13-
parallel{
14-
steps{
12+
stage("test") {
13+
parallel {
14+
test1: {
1515
echo "test 1"
16-
}
17-
steps{
18-
"test 2"
16+
},
17+
test2: {
18+
echo "test 2"
1919
}
2020
}
2121
}
22-
stage("run"){
23-
steps{
22+
stage("run") {
23+
steps {
2424
bat "java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App"
2525
}
2626
}
27-
2827
}
2928
post {
30-
success{
29+
success {
3130
archiveArtifacts artifacts: "**/target/*.jar"
3231
}
3332
}

0 commit comments

Comments
 (0)