Skip to content
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

Kick off temurin sign jsf using groovy script #1165

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Haroon-Khel
Copy link
Contributor

Same as #1131 but we are taking a groovy script approach to see if it resolves the error in adoptium/temurin-build#3946 (comment)

Copy link

Thank you for creating a pull request!

Please check out the information below if you have not made a pull request here before (or if you need a reminder how things work).

Code Quality and Contributing Guidelines

If you have not done so already, please familiarise yourself with our Contributing Guidelines and Code Of Conduct, even if you have contributed before.

Tests

Github actions will run a set of jobs against your PR that will lint and unit test your changes. Keep an eye out for the results from these on the latest commit you submitted. For more information, please see our testing documentation.

In order to run the advanced pipeline tests (executing a set of mock pipelines), it requires an admin to post run tests on this PR.
If you are not an admin, please ask for one's attention in #infrastructure on Slack or ping one here.
To run full set of tests, use "run tests"; a subset of tests on specific jdk version, use "run tests quick 11,21"

@Haroon-Khel
Copy link
Contributor Author

Linter errors and im seeing this in the job https://ci.adoptium.net/job/sign_temurin_jsf/4/console

[Pipeline] End of Pipeline
Also:   hudson.remoting.ProxyException: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 54a8153c-c519-4204-8063-21f4aac0420e
hudson.remoting.ProxyException: groovy.lang.MissingPropertyException: No such property: context for class: WorkflowScript
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:66)

Something im not doing right

@Haroon-Khel
Copy link
Contributor Author

Removing context fixed the above error, but now something in the sh script is causing an error

+ cd artifacts
/home/jenkins/workspace/sign_temurin_jsf@tmp/durable-f509a925/script.sh.copy: 3: Syntax error: "(" unexpected (expecting ")")
[Pipeline] }

@Haroon-Khel
Copy link
Contributor Author

Looks like we're hitting the same error as adoptium/temurin-build#3946 (comment)

+ java -cp cyclonedx-lib/build/jar/* temurin.sbom.TemurinSignSBOM --verbose --signSBOM --jsonFile ./OpenJDK-sbom_x64_linux_hotspot_25_2-ea.json --privateKeyFile ****
Dec 16, 2024 1:20:20 PM temurin.sbom.TemurinSignSBOM signSBOM
SEVERE: Error signing SBOM
java.io.IOException: Didn't find any: -----BEGIN PRIVATE KEY-----
	at org.webpki.util.PEMDecoder.decodePemObjects(PEMDecoder.java:219)
	at org.webpki.util.PEMDecoder.decodePemObject(PEMDecoder.java:232)
	at org.webpki.util.PEMDecoder.getPrivateKeyBlob(PEMDecoder.java:118)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant