-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Code signing with Software Trust Manager, Version 13.v147276d96cb_1
Jenkins 2.452.2
Jenkins Master is on Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1020-aws x86_64)
openjdk 17.0.11 2024-04-16
OpenJDK Runtime Environment (build 17.0.11+9-Ubuntu-122.04.1)
OpenJDK 64-Bit Server VM (build 17.0.11+9-Ubuntu-122.04.1, mixed mode, sharing)
Jenkins agent on Windows 11 (started with java -jar agent.jar)
openjdk version "21.0.1" 2023-10-17 LTS
OpenJDK Runtime Environment Microsoft-8526870 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Microsoft-8526870 (build 21.0.1+12-LTS, mixed mode, sharing)Code signing with Software Trust Manager, Version 13.v147276d96cb_1 Jenkins 2.452.2 Jenkins Master is on Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1020-aws x86_64) openjdk 17.0.11 2024-04-16 OpenJDK Runtime Environment (build 17.0.11+9-Ubuntu-122.04.1) OpenJDK 64-Bit Server VM (build 17.0.11+9-Ubuntu-122.04.1, mixed mode, sharing) Jenkins agent on Windows 11 (started with java -jar agent.jar) openjdk version "21.0.1" 2023-10-17 LTS OpenJDK Runtime Environment Microsoft-8526870 (build 21.0.1+12-LTS) OpenJDK 64-Bit Server VM Microsoft-8526870 (build 21.0.1+12-LTS, mixed mode, sharing)
Following the instructions at https://docs.digicert.com/en/software-trust-manager/ci-cd-integrations/plugins/jenkins-plugin-for-keypair-signing.html
When the pipeline runs:
stage('Set Up Software Trust Manager') {
steps {
SoftwareTrustManagerSetup()
}
}
It throws an exception:
hudson.remoting.ProxyException: java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:824) at io.jenkins.plugins.digicert.AgentInfo.getCredential(AgentInfo.java:45) at io.jenkins.plugins.digicert.AgentInfo.getValue(AgentInfo.java:51) at io.jenkins.plugins.digicert.AgentInfo.call(AgentInfo.java:64) at io.jenkins.plugins.digicert.AgentInfo.call(AgentInfo.java:25) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:377) at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:137) at java.base/java.lang.Thread.run(Thread.java:1583)
Start of Jenkins file is:
pipeline { agent { node { label 'windows' } } environment { SM_API_KEY = credentials('SM_API_KEY') SM_HOST = credentials('SM_HOST') SM_CLIENT_CERT_PASSWORD = credentials('SM_CLIENT_CERT_PASSWORD') SM_CLIENT_CERT_FILE = credentials('SM_CLIENT_CERT_FILE') } stages { stage('Set up Software Trust Manager') { steps { SoftwareTrustManagerSetup() } }
I also tried moving this stage to later in the build, but get the same exception.