Skip to content

Commit fc3149d

Browse files
CI: Fix deploy pipeline (#1765) (#1766)
Co-authored-by: Tristan Radisson <tradisso@redhat.com>
1 parent fa86030 commit fc3149d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.ci/jenkins/Jenkinsfile.deploy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,15 @@ pipeline {
124124
steps {
125125
script {
126126
dir(getRepoName()) {
127-
getMavenCommand().withProperty('maven.test.failure.ignore', true).skipTests(params.SKIP_TESTS).run('clean install')
127+
def mvnCmd = getMavenCommand()
128+
.withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : [])
129+
.withOptions(env.KOGITO_EXAMPLES_BUILD_MVN_OPTS ? [ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS ] : [])
130+
.withProperty('maven.test.failure.ignore', true)
131+
132+
if (params.SKIP_TESTS) {
133+
mvnCmd.skipTests() // Conflict somehow with Python testing. If `skipTests={anyvalue}` is set, then exec plugin is not executed ...
134+
}
135+
util.runWithPythonVirtualEnv(mvnCmd.getFullRunCommand('clean install'), 'swf')
128136
}
129137
}
130138
}

0 commit comments

Comments
 (0)