Skip to content

MLE-31723: fix publish image race - #469

Open
barkhachoithani wants to merge 2 commits into
developfrom
MLE-31723_fix-publish-image-race
Open

MLE-31723: fix publish image race#469
barkhachoithani wants to merge 2 commits into
developfrom
MLE-31723_fix-publish-image-race

Conversation

@barkhachoithani

Copy link
Copy Markdown
Collaborator

Description

Checklist:

  • Owner:
  • JIRA_ID as part of branch/PR name

  • Rebase the branch with upstream

  • Squashed all commits into a single commit

  • Added Tests

  • Reviewer:
  • Reviewed Tests

  • Added to Release Wiki/Jira

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Jenkins pipeline to reduce race conditions during image publishing by tightening how build artifacts (RPMs/images) are selected and by avoiding ambiguous Docker image lookups in a shared-daemon environment.

Changes:

  • Prefer version-scoped RPM filename patterns (with fallback) and add validation that the resolved RPM matches the requested MarkLogic major version.
  • In the publish stage, rely only on the exact builtImage tag (and verify it exists) instead of “grep-first-match” discovery from docker images.
  • Add explanatory inline comments clarifying why fully-qualified tags are required with concurrent builds on shared Docker daemons.

Comment thread Jenkinsfile
Comment on lines +288 to +291
if (!RPM) {
error "No MarkLogic RPM found in src/ for architecture ${archSuffix}"
}

Comment thread Jenkinsfile
Comment on lines +295 to +297
if (!marklogicVersion.startsWith("${params.marklogicVersion}.")) {
error "Resolved RPM version '${marklogicVersion}' does not match requested marklogicVersion '${params.marklogicVersion}'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants