-
Notifications
You must be signed in to change notification settings - Fork 28
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
some plugins could be optional #20
some plugins could be optional #20
Conversation
I am afraid that is not really possible when using super(KubernetesAuthToken.class, GoogleRobotCredentials.class); must throw a |
Thanks Jesse for this quick response. Here are my manuals testing : Starts Jenkins with the plugin with mvn hpi:run (so all plugins are enabled). import jenkins.model.*
import hudson.model.*
import jenkins.authentication.tokens.api.AuthenticationTokenSource;
Jenkins.getInstance().getExtensionList(AuthenticationTokenSource.class).each{
println it
}
return "" The result is :
Stops Jenkins. Then disable optional plugins. Starts Jenkins wih mvn hpi:run.
Execute the same groovy script and got :
So, to me, it seems to work. On the other hand, there is not log about skipping GoogleRobotCredentialsTokenSource or DockerServerCredentialsTokenSource. Do you think that's enough of a test ? |
Or |
I did the same tests with a Jenkins 2.176.1 with fresh Just one line in the log for If I set FINE (PRÉCIS in french) log level, I then have some trace of LinkageError :
Do you think it's OK ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Looks like there is some inconsistency in how ExtensionFinder sets log levels here. No idea why GoogleRobotCredentials
is treated differently, but Guice is basically a black box.
Thanks to both of you |
plain-credentials, google-oauth-plugin and docker-commons could be optional.
If I don't use GKE, I should not be forced to install google-oauth-plugin.
I tried to see how to add test but I couldn't find a way to test that the plugin behaves normally with or without these optionals plugins.