Skip to content

Commit 5b55050

Browse files
authored
Update Jenkinsfile
1 parent 05590d4 commit 5b55050

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Jenkinsfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ pipeline {
22
agent any
33

44
tools {
5-
maven "MAVEN" // Make sure "MAVEN" matches your Jenkins Maven tool name
5+
maven "MAVEN"
66
}
77

88
stages {
99
stage('Build') {
1010
steps {
11-
bat "mvn clean package" // 'build' is not a default Maven goal; use 'package'
11+
bat "mvn clean package"
1212
}
1313
}
14-
stage("run"){
15-
steps{
14+
15+
stage('Run') {
16+
steps {
1617
bat "java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App"
1718
}
19+
}
1820
}
1921

2022
post {

0 commit comments

Comments
 (0)