ci-jenkins-pipelines icon indicating copy to clipboard operation
ci-jenkins-pipelines copied to clipboard

sign_build job should be more configurable

Open AdamBrousseau opened this issue 4 years ago • 6 comments

Related/Similar AdoptOpenJDK/ci-jenkins-pipelines#50

https://github.com/AdoptOpenJDK/openjdk-build/blob/282058709909733381464dcb67b7f0d13dca4e13/pipelines/build/common/openjdk_build_pipeline.groovy#L226

The function for sign build has some hardcoded values which could be parameterized to make the scripts more portable.

Lables

https://github.com/AdoptOpenJDK/openjdk-build/blob/282058709909733381464dcb67b7f0d13dca4e13/pipelines/build/common/openjdk_build_pipeline.groovy#L237 def nodeFilter = "${buildConfig.TARGET_OS}"

https://github.com/AdoptOpenJDK/openjdk-build/blob/282058709909733381464dcb67b7f0d13dca4e13/pipelines/build/common/openjdk_build_pipeline.groovy#L242 nodeFilter = "${nodeFilter}&&build&&win2012"

https://github.com/AdoptOpenJDK/openjdk-build/blob/282058709909733381464dcb67b7f0d13dca4e13/pipelines/build/common/openjdk_build_pipeline.groovy#L248 nodeFilter = "${nodeFilter}&&macos10.14"

Certificates

https://github.com/AdoptOpenJDK/openjdk-build/blob/282058709909733381464dcb67b7f0d13dca4e13/pipelines/build/common/openjdk_build_pipeline.groovy#L241 certificate = "C:\\openjdk\\windows.p12"

https://github.com/AdoptOpenJDK/openjdk-build/blob/282058709909733381464dcb67b7f0d13dca4e13/pipelines/build/common/openjdk_build_pipeline.groovy#L246 certificate = "\"Developer ID Application: London Jamocha Community CIC\""

AdamBrousseau avatar Oct 19 '20 18:10 AdamBrousseau

Not sure why this wasn't handled in #145. This issue is still valid even though the code has changed.

IMO this line should be configurable https://github.com/adoptium/ci-jenkins-pipelines/blob/c5a5ed7dd940b95951dc3379fb73605c5f31f013/pipelines/build/common/openjdk_build_pipeline.groovy#L404

AdamBrousseau avatar May 12 '21 15:05 AdamBrousseau

@andrew-m-leonard can we work on this issue?

SehrishHussain avatar Oct 14 '21 18:10 SehrishHussain

@SehrishHussain yes, this looks like a new BUILD_CONFIG parameter is required for nodeFilter, which in turn can then be specified via the Jenkins build job params

andrew-m-leonard avatar Oct 15 '21 10:10 andrew-m-leonard

@andrew-m-leonard please check the PR looking forward for your feedback

SehrishHussain avatar Oct 16 '21 09:10 SehrishHussain

@andrew-m-leonard I am interested in this issue can it be assigned to me?

cornelia247 avatar Oct 13 '22 08:10 cornelia247

Thanks @cornelia247 , i've assigned it to you.

andrew-m-leonard avatar Oct 13 '22 09:10 andrew-m-leonard