-
-
Notifications
You must be signed in to change notification settings - Fork 274
Add build recipe generation to build.sh and integrate new workflows CLI into sbom.sh #4289
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -1067,6 +1067,25 @@ generateSBoM() { | |||
| # Add CycloneDX versions | ||||
| addCycloneDXVersions | ||||
|
|
||||
| local formulaName="formula_temurin_build_script_1.0_jdk21u" | ||||
| local workflowRef="workflow_temurin_build_script_1.0_jdk21u" | ||||
| local workflowUid="workflow_temurin_build_script_1.0_jdk21u" | ||||
| local workflowName="temurin build script 1.0 for jdk21u" | ||||
| local taskTypes="clone,build" | ||||
|
|
||||
| # Create workflow under the formula (formula/workflow are created if missing) | ||||
| addSBOMWorkflow "${javaHome}" "${classpath}" "${sbomJson}" "${formulaName}" "${workflowRef}" "${workflowUid}" "${workflowName}" "${taskTypes}" | ||||
|
|
||||
| # Steps | ||||
| addSBOMWorkflowStep "${javaHome}" "${classpath}" "${sbomJson}" "${formulaName}" "${workflowRef}" "clone repo" "clone repository" | ||||
| addSBOMWorkflowStep "${javaHome}" "${classpath}" "${sbomJson}" "${formulaName}" "${workflowRef}" "cd into repository" "cd into temurin-build" | ||||
| addSBOMWorkflowStep "${javaHome}" "${classpath}" "${sbomJson}" "${formulaName}" "${workflowRef}" "makejdk" "execute makejdk-anyplatform.sh" | ||||
|
|
||||
| # Commands | ||||
| addSBOMWorkflowStepCmd "${javaHome}" "${classpath}" "${sbomJson}" "${formulaName}" "${workflowRef}" "clone repo" "git clone [email protected]:adoptium/temurin-build" | ||||
|
||||
| # Add buildRef as JDK Component Property |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need this builds full exact makejdk-any-platform.sh params...
Line 1145 in f4bcbeb
| # Add makejdk_any_platform_args JDK Component Property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to construct these names based on the given builds VERSION etc...
I suggest something like:
fullVer from https://github.com/adoptium/temurin-build/blob/f4bcbeb80b2dc0a624721f09a91c925e6df2bc90/sbin/build.sh#L1010C9-L1010C16