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

[Misc] Temporary changes to try to debug the docker-latest triggering issue

parent 31bba486
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ if (!params.type || params.type == 'standard') { ...@@ -143,7 +143,7 @@ if (!params.type || params.type == 'standard') {
} else { } else {
// If the build is docker-latest, only build if the previous build was triggered by some source code changes. // 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. // Also always build if triggered manually by a user.
if (params.type == 'docker-latest' && (!currentBuild.rawBuild.getCauses()[0].toString().contains('UserIdCause'))) { if (params.type == 'docker-latest' /*&& (!currentBuild.rawBuild.getCauses()[0].toString().contains('UserIdCause'))*/) {
// We trigger the build under two conditions: // We trigger the build under two conditions:
// - The previous build has been triggered by a SCM change or a Branch Event (not sure what this is about but it // - The previous build has been triggered by a SCM change or a Branch Event (not sure what this is about but it
// seems we need that too since it happens when we push changes to master) // seems we need that too since it happens when we push changes to master)
...@@ -180,6 +180,8 @@ if (!params.type || params.type == 'standard') { ...@@ -180,6 +180,8 @@ if (!params.type || params.type == 'standard') {
private def getFirstNonDockerBuild(def rawBuild) private def getFirstNonDockerBuild(def rawBuild)
{ {
echoXWiki "Finding first non-docker build..." echoXWiki "Finding first non-docker build..."
echoXWiki " current rawBuild = ${rawBuild.class.name}"
echoXWiki " previous rawBuild = ${rawBuild.getPreviousBuild().class.name}"
def previous = rawBuild.getPreviousBuild() def previous = rawBuild.getPreviousBuild()
echoXWiki " Checking build [${previous.getDisplayName()}] (${previous.id})..." echoXWiki " Checking build [${previous.getDisplayName()}] (${previous.id})..."
while (previous != null && isBadgeFound(previous, 'Docker Build')) { while (previous != null && isBadgeFound(previous, 'Docker Build')) {
......
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