Skip to content

Commit

Permalink
CI: Fix deploy pipeline (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste authored Aug 17, 2023
1 parent 4abbb96 commit aa73aa4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ pipeline {
steps {
script {
dir(getRepoName()) {
getMavenCommand()
def mvnCmd = getMavenCommand()
.withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : [])
.withOptions(env.KOGITO_EXAMPLES_BUILD_MVN_OPTS ? [ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS ] : [])
.withProperty('maven.test.failure.ignore', true)
.skipTests(params.SKIP_TESTS)
.run('clean install')

if (params.SKIP_TESTS) {
mvnCmd.skipTests() // Conflict somehow with Python testing. If `skipTests={anyvalue}` is set, then exec plugin is not executed ...
}
util.runWithPythonVirtualEnv(mvnCmd.getFullRunCommand('clean install'), 'swf')
}
}
}
Expand Down

0 comments on commit aa73aa4

Please sign in to comment.