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 109fe0e commit d8426ebCopy full SHA for d8426eb
Jenkinsfile
@@ -1,33 +1,32 @@
1
-pipeline{
+pipeline {
2
agent any
3
- tools{
+ tools {
4
maven "MAVEN"
5
}
6
- stages{
7
- stage("build"){
8
- steps{
+ stages {
+ stage("build") {
+ steps {
9
bat "mvn clean package"
10
11
12
- stage("test"){
13
- parallel{
14
+ stage("test") {
+ parallel {
+ test1: {
15
echo "test 1"
16
- }
17
18
- "test 2"
+ },
+ test2: {
+ echo "test 2"
19
20
21
22
- stage("run"){
23
+ stage("run") {
24
bat "java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App"
25
26
27
-
28
29
post {
30
- success{
+ success {
31
archiveArtifacts artifacts: "**/target/*.jar"
32
33
0 commit comments