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

Tests Missing instance-identity #186

Open
sghill opened this issue Mar 22, 2021 · 0 comments
Open

Tests Missing instance-identity #186

sghill opened this issue Mar 22, 2021 · 0 comments

Comments

@sghill
Copy link

sghill commented Mar 22, 2021

In order to run JenkinsRule tests without stacktraces
As a jpi plugin user
I want the jpi plugin to add org.jenkins-ci.modules:instance-identity where JenkinsRule will be used

Running tests will often print this message to stderr:

12:43:42 java.security.KeyStoreException: JENKINS-41987: no X509Certificate found; perhaps instance-identity module is missing or too old
12:43:42     	at jenkins.slaves.JnlpSlaveAgentProtocol4.<init>(JnlpSlaveAgentProtocol4.java:105)
12:43:42     	at jenkins.slaves.JnlpSlaveAgentProtocol4$$FastClassByGuice$$b470638c.newInstance(<generated>)
12:43:42     	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
12:43:42     	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
12:43:42     	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
12:43:42     	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
12:43:42     	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
12:43:42     	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
12:43:42     	at hudson.ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:572)
12:43:42     	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
12:43:42     	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
12:43:42     	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
12:43:42     	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
12:43:42     	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
12:43:42     	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
12:43:42     	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
12:43:42     Caused: com.google.inject.ProvisionException: Unable to provision, see the following errors:
12:43:42 
12:43:42     1) Error injecting constructor, java.security.KeyStoreException: JENKINS-41987: no X509Certificate found; perhaps instance-identity module is missing or too old
12:43:42       at jenkins.slaves.JnlpSlaveAgentProtocol4.<init>(JnlpSlaveAgentProtocol4.java:101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant