Skip to content
Snippets Groups Projects
Commit cca21a53 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Don't set the build as successful when the docker build is not executed...

[Misc] Don't set the build as successful when the docker build is not executed + always build when triggered manually
parent d2858efa
No related branches found
No related tags found
No related merge requests found
......@@ -140,12 +140,15 @@ if (!params.type || params.type == 'standard') {
}
}
} else {
// If the build is docker-latest, only build if the previous build was triggered by some source code changes
if (params.type == 'docker-latest') {
// If the build is docker-latest, only build if the previous build was triggered by some source code changes.
// Also always build if triggered manually by a user.
if (params.type == 'docker-latest' && (!currentBuild.rawBuild.getCauses()[0].toString().contains('UserIdCause'))) {
if (!currentBuild.rawBuild.getPreviousBuild().getChangeSets().isEmpty()) {
buildDocker(params.type)
} else {
echoXWiki "No changeset found in previous build, thus not executing the docker latest tests."
// Aborting so that the build isn't displayed as successful without doing anything.
currentBuild.result = 'ABORTED'
}
} else {
buildDocker(params.type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment