We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b55050 commit 422ba83Copy full SHA for 422ba83
Jenkinsfile
@@ -1,26 +1,19 @@
1
-pipeline {
+pipeline{
2
agent any
3
-
4
- tools {
5
- maven "MAVEN"
6
- }
7
8
- stages {
9
- stage('Build') {
10
- steps {
+ stages{
+ stage("build"){
+ steps{
11
bat "mvn clean package"
12
}
13
14
15
- stage('Run') {
16
+ stage("run"){
17
bat "java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App"
18
19
20
21
22
post {
23
- always {
+ success{
24
archiveArtifacts artifacts: "**/target/*.jar"
25
26
0 commit comments