Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
85527ea5
Commit
85527ea5
authored
4 years ago
by
Vincent Massol
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+3
-1
3 additions, 1 deletion
Jenkinsfile
with
3 additions
and
1 deletion
Jenkinsfile
+
3
−
1
View file @
85527ea5
...
@@ -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'
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment