Skip to content

Support for Artifactory URL downloads in pipelines#1376

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

Support for Artifactory URL downloads in pipelines#1376
jasonkatonica merged 1 commit into
IBM:java25from
jasonkatonica:katonica/feature/allowdownloadfromartifactory-java25

Conversation

@jasonkatonica

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

@jasonkatonica jasonkatonica force-pushed the katonica/feature/allowdownloadfromartifactory-java25 branch 3 times, most recently from 3a59778 to 21a1267 Compare April 16, 2026 15:54
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>
@jasonkatonica jasonkatonica force-pushed the katonica/feature/allowdownloadfromartifactory-java25 branch from 21a1267 to 7687b04 Compare April 16, 2026 16:48
@jasonkatonica jasonkatonica marked this pull request as ready for review April 16, 2026 17:56

@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 eb45b2b into IBM:java25 Apr 17, 2026
3 checks passed
@jasonkatonica jasonkatonica deleted the katonica/feature/allowdownloadfromartifactory-java25 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