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

Implement GPG signing of the binary build artifacts #320

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class Build {
selector: context.specific("${signJob.getNumber()}"),
filter: 'workspace/target/*',
fingerprintArtifacts: true,
target: "workspace/target/",
target: 'workspace/target/',
flatten: true)


Expand All @@ -507,6 +507,34 @@ class Build {
}
}
}
context.stage("GPG sign") {

context.println "RUNNING sign_temurin_gpg for ${buildConfig.TARGET_OS}/${buildConfig.ARCHITECTURE} ..."

def params = [
context.string(name: 'UPSTREAM_JOB_NUMBER', value: "${env.BUILD_NUMBER}"),
context.string(name: 'UPSTREAM_JOB_NAME', value: "${env.JOB_NAME}"),
context.string(name: 'UPSTREAM_DIR', value: "workspace/target"),
['$class': 'LabelParameterValue', name: 'NODE_LABEL', label: "built-in"]
]

def signSHAsJob = context.build job: "build-scripts/release/sign_temurin_gpg",
propagate: true,
parameters: params

context.node('built-in || master') {
context.sh "rm -f workspace/target/*.sig"
context.copyArtifacts(
projectName: "build-scripts/release/sign_temurin_gpg",
selector: context.specific("${signSHAsJob.getNumber()}"),
filter: '**/*.sig',
fingerprintArtifacts: true,
target: 'workspace/target/',
flatten: true)
// Archive GPG signatures in Jenkins
context.archiveArtifacts artifacts: "workspace/target/*.sig"
}
}
}

/*
Expand Down