Skip to content

Support for Artifactory URL downloads in pipelines#1405

Merged
jasonkatonica merged 1 commit into
IBM:java17from
jasonkatonica:katonica/feature/allowdownloadfromartifactory-java17
Apr 17, 2026
Merged

Support for Artifactory URL downloads in pipelines#1405
jasonkatonica merged 1 commit into
IBM:java17from
jasonkatonica:katonica/feature/allowdownloadfromartifactory-java17

Conversation

@jasonkatonica

@jasonkatonica jasonkatonica commented Apr 16, 2026

Copy link
Copy Markdown
Member

Enhanced the JAVA_RELEASE parameter to accept either a release version or a direct Artifactory URL for Java builds. This provides more flexibility in specifying custom Java builds during CI/CD execution.

Changes:

  • Updated Jenkinsfile and JenkinsfilePerformance parameter descriptions to document two options: release version or Artifactory URL
  • Modified utils.groovy getJava() function to detect and handle Artifactory URLs (na.artifactory.swg-devops.com)
  • Added validation to reject non-Artifactory URLs for security
  • Implemented authenticated downloads using ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD credentials for Artifactory URLs
  • Maintained backward compatibility with existing release version format
  • Detect if JDK extracted already results in a jdk directory

The implementation ensures that only trusted Artifactory URLs are accepted and automatically applies authentication when downloading from Artifactory, while preserving the existing behavior for standard release versions.

Back-ported from: #1374

Signed-off-by: Jason Katonica katonica@us.ibm.com

Enhanced the JAVA_RELEASE parameter to accept either a release version
or a direct Artifactory URL for Java builds. This provides more
flexibility in specifying custom Java builds during CI/CD execution.

Changes:
- Updated Jenkinsfile and JenkinsfilePerformance parameter descriptions
  to document two options: release version or Artifactory URL
- Modified utils.groovy getJava() function to detect and handle
  Artifactory URLs (na.artifactory.swg-devops.com)
- Added validation to reject non-Artifactory URLs for security
- Implemented authenticated downloads using ARTIFACTORY_USERNAME and
  ARTIFACTORY_PASSWORD credentials for Artifactory URLs
- Maintained backward compatibility with existing release version format
- Detect if JDK extracted already results in a jdk directory

The implementation ensures that only trusted Artifactory URLs are
accepted and automatically applies authentication when downloading
from Artifactory, while preserving the existing behavior for standard
release versions.

Signed-off-by: Jason Katonica <katonica@us.ibm.com>

@KostasTsiounis KostasTsiounis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@JinhangZhang JinhangZhang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@jasonkatonica jasonkatonica merged commit 6a2ce67 into IBM:java17 Apr 17, 2026
3 checks passed
@jasonkatonica jasonkatonica deleted the katonica/feature/allowdownloadfromartifactory-java17 branch April 17, 2026 10:06
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