Skip to content

Commit

Permalink
CI: Fix deploy pipeline (#1765) (#1766)
Browse files Browse the repository at this point in the history
Co-authored-by: Tristan Radisson <[email protected]>
  • Loading branch information
github-actions[bot] and radtriste authored Aug 17, 2023
1 parent fa86030 commit fc3149d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,15 @@ pipeline {
steps {
script {
dir(getRepoName()) {
getMavenCommand().withProperty('maven.test.failure.ignore', true).skipTests(params.SKIP_TESTS).run('clean install')
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)

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 fc3149d

Please sign in to comment.