Skip to content

Commit 22a7b6b

Browse files
committed
CAMEL-11930: no need to run the assembly
In CI we don't need to run assembly at all, this makes this apply to all Maven invocations in the pipeline.
1 parent 0abe9ee commit 22a7b6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Jenkinsfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def LOCAL_REPOSITORY = env.LOCAL_REPOSITORY ?: '/home/jenkins/jenkins-slave/mave
2121
def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu'
2222
def JDK_NAME = env.JDK_NAME ?: 'JDK 1.8 (latest)'
2323

24-
def MAVEN_PARAMS = "-U -B -e -fae -V -Dmaven.repo.local=${LOCAL_REPOSITORY} -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
24+
def MAVEN_PARAMS = "-U -B -e -fae -V -Dmaven.repo.local=${LOCAL_REPOSITORY} -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
2525

2626
pipeline {
2727

@@ -47,7 +47,7 @@ pipeline {
4747
branch 'master'
4848
}
4949
steps {
50-
sh "./mvnw $MAVEN_PARAMS -Dnoassembly -Dmaven.test.skip.exec=true clean deploy"
50+
sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean deploy"
5151
}
5252
}
5353

@@ -58,7 +58,7 @@ pipeline {
5858
}
5959
}
6060
steps {
61-
sh "./mvnw $MAVEN_PARAMS -Dnoassembly -Dmaven.test.skip.exec=true clean install"
61+
sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean install"
6262
}
6363
}
6464

@@ -75,7 +75,7 @@ pipeline {
7575

7676
stage('Test') {
7777
steps {
78-
sh "./mvnw $MAVEN_PARAMS -Dnoassembly -Dmaven.test.failure.ignore=true test"
78+
sh "./mvnw $MAVEN_PARAMS -Dmaven.test.failure.ignore=true test"
7979
}
8080
post {
8181
always {

0 commit comments

Comments
 (0)