UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
container-scanning-pipeline
Commits
acda001b
Commit
acda001b
authored
May 30, 2019
by
Josh Nachbar
👌
Browse files
Merge branch 'fix_private_key' into 'master'
fix the private key issue of copying See merge request
!17
parents
8d832177
34571f30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Jenkinsfile
Jenkinsfile
+4
-1
No files found.
Jenkinsfile
View file @
acda001b
...
...
@@ -451,8 +451,11 @@ pipeline {
echo
containerDocumentation
writeFile
(
file:
"${S3_MANIFEST_NAME}"
,
text:
containerDocumentation
)
signature
=
sh
(
script:
"g=\$(mktemp -d) && f=\$(mktemp) && trap \"rm \$f;rm -rf \$g\" EXIT || exit 255;gpg --homedir \$g --import --batch --passphrase '${SIGNING_KEY_PASSPHRASE}' ${SIGNING_KEY} ;gpg --detach-sign --homedir \$g -o \$f --armor --yes --batch --passphrase '${SIGNING_KEY_PASSPHRASE}' ${S3_MANIFEST_NAME};cat \$f;"
,
withCredentials
([
file
(
credentialsId:
'ContainerSigningKey'
,
variable:
'PRIVATE_KEY'
)])
{
signature
=
sh
(
script:
"g=\$(mktemp -d) && f=\$(mktemp) && trap \"rm \$f;rm -rf \$g\" EXIT || exit 255;gpg --homedir \$g --import --batch --passphrase '${SIGNING_KEY_PASSPHRASE}' ${PRIVATE_KEY} ;gpg --detach-sign --homedir \$g -o \$f --armor --yes --batch --passphrase '${SIGNING_KEY_PASSPHRASE}' ${S3_MANIFEST_NAME};cat \$f;"
,
returnStdout:
true
)
}
//withCredentials
def
signatureMatch
=
signature
=~
/(?s)-----BEGIN PGP SIGNATURE-----.*-----END PGP SIGNATURE-----/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment