-
-
Notifications
You must be signed in to change notification settings - Fork 72
Building your own branch of ci jenkins pipelines or temurin build
Andrew Leonard edited this page Sep 2, 2024
·
8 revisions
You can now run a build pipeline using your own branch of either ci-jenkins-pipelines or temurin-build, simply by setting parameters appropriately, as follows:
Some things to "note" is as follows:
- The "defaultsJson" are the "User" defaults for various parameters, and is relevant when "useAdoptBashScripts" is set to false.
- The "adoptDefaultsJson" are the "Adopt" defaults for various parameters, and is relevant when "useAdoptBashScripts" is set to true.
- The downstream build jobs now get passed the "USER_REMOTE_CONFIGS" (if useAdoptBashScripts==false, constructed from the defaultsJson pipeline branch & url), DEFAULTS_JSON and ADOPT_DEFAULTS_JSON from the openjdkNN-pipeline job.
Note: If you are changing ci-jenkins-pipelines in an area that affects the top level openjdkNN-pipeline script (pipelines/build/common/build_base_file.groovy), you will likely need to update the Jenkins openjdkNN-pipeline job SCM to point directly at your repo and branch, as at that level it is not always possible to dynamically load everything.
Important Note: With useAdoptBashScripts==false, the Windows and Mac "Signing" logic is not invoked for jdk11u+.
To build using your own branch of temurin-build or ci-jenkins-pipelines:
- Select the https://ci.adoptopenjdk.net/job/build-scripts/openjdkNN-pipeline and select "Build with parameters"
- Set "useAdoptBashScripts" to false
- Within "defaultsJson" "repository" section, change the values of "build_branch" and "build_url" to be your fork and branch of temurin-build.
- Within "defaultsJson" "repository" section, change the values of "pipeline_branch" and "pipeline_url" to be your fork and branch of ci-jenkins-pipelines.
- Make sure that BUILD_REF is an empty string (If you've click 'rebuild' on a reproduce comparison job it'll have something diferent which will override the repository you specify). You may also want to set
ENABLE_REPRODUCIBLE_COMPARE
is set to false to stop it running two builds - "Build"