Skip to content

MLE-21417/Push ML12 nightly to PDC #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rwinieski
Copy link
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

Copy link

@Copilot Copilot AI left a comment

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 adds support for pushing the ML12 nightly build to the PDC registry by updating the Jenkinsfile.

  • Introduces a new variable, pdcRegistry, for the PDC registry endpoint.
  • Adds conditional steps in the publishToInternalRegistry method to log in, tag, and push Docker images to the PDC registry for ML12 builds.

@@ -13,6 +13,7 @@ emailList = '[email protected], [email protected], Sumanth
emailSecList = '[email protected]'
gitCredID = 'marklogic-builder-github'
dockerRegistry = 'ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com'
pdcRegistry = 'sandboxpdc.azurecr.io'
Copy link
Preview

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider externalizing the pdcRegistry URL into a configuration file or environment variable to simplify future updates without modifying the Jenkinsfile.

Suggested change
pdcRegistry = 'sandboxpdc.azurecr.io'
pdcRegistry = env.PDC_REGISTRY ?: 'sandboxpdc.azurecr.io'

Copilot uses AI. Check for mistakes.

@@ -362,9 +363,21 @@ void publishToInternalRegistry() {
}
}

// Publish to private ACR repository that is used by PDC. (only ML12)
if ( params.marklogicVersion == "12" ) {
Copy link
Preview

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using a named constant or configuration parameter for the Marklogic version '12' to improve readability and maintainability in future expansions.

Suggested change
if ( params.marklogicVersion == "12" ) {
if ( params.marklogicVersion == MARKLOGIC_VERSION_12 ) {

Copilot uses AI. Check for mistakes.

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.

1 participant