build: jar signing: moved keystore path and cert alias to env vars
@@ -241,19 +241,11 @@ task publishAirGapZipWithoutDocker() {
}
}
-task tempList() {
- doLast {
- exec {
- commandLine 'keytool', '-storepass', "${System.env.JARSIGNER_STOREPASS}", '-keystore', "${System.env.HOME}/code-signing-cert.p12", '-list', '-v'
- }
- }
-}
-
task signJar() {
- dependsOn build, tempList
+ dependsOn build
doLast {
exec {
- commandLine 'jarsigner', '-tsa', 'http://timestamp.globalsign.com/scripts/timestamp.dll', '-storetype', 'pkcs12', '-storepass', "${System.env.JARSIGNER_STOREPASS}", '-keystore', "${System.env.HOME}/code-signing-cert.p12", "${createArtifactName()}", "blackduck digicert"
+ commandLine 'jarsigner', '-tsa', 'http://timestamp.globalsign.com/scripts/timestamp.dll', '-storetype', 'pkcs12', '-storepass', "${System.env.JARSIGNER_KEYSTORE_PASS}", '-keystore', "${System.env.JARSIGNER_KEYSTORE_PATH}", "${createArtifactName()}", "${System.env.JARSIGNER_CERT_ALIAS}"
}
}
}
