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

[JENKINS-36184] Update envinject-lib dependency #6

Merged
merged 3 commits into from
Jul 1, 2016

Conversation

fbelzunc
Copy link
Contributor

https://issues.jenkins-ci.org/browse/JENKINS-36184

jun 23, 2016 1:24:01 PM hudson.model.Executor finish1
SEVERE: Executor threw an exception
java.lang.NoClassDefFoundError: hudson/matrix/MatrixRun
    at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:25)
    at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:56)
    at hudson.plugins.batch_task.BatchRun.run(BatchRun.java:224)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.ClassNotFoundException: hudson.matrix.MatrixRun
    at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
    at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 5 more

I think perhaps the right fix should be on lib.envinject but this will not be an immediate solution.

What do you think?

@reviewbybees

@ghost
Copy link

ghost commented Jun 23, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@varmenise
Copy link

🐝

@oleg-nenashev
Copy link
Member

I'd better remove the scope at all.
Optional looks very suspicious, because the dependency should be mandatory.
And I;m not sure what it actually fixes. The code would not compile if there is a real dependency

@fbelzunc
Copy link
Contributor Author

@oleg-nenashev Me neither - I have no clue where is the magic here.

@amuniz
Copy link
Member

amuniz commented Jun 23, 2016

@oleg-nenashev the dependency is transitive (through envinject-lib). Is there some problem on adding the dependency on the lib instead of here?

@fbelzunc
Copy link
Contributor Author

@amuniz let me try it

@alvarolobato
Copy link
Member

alvarolobato commented Jun 23, 2016

Te problem actually seems to be in EnvinJect-lib which is using it and doesn't declare the dependency:
LibInject->MatrixRun

@fbelzunc
Copy link
Contributor Author

@alvarolobato DONE here: jenkinsci/envinject-lib#7 Can I get your bee?

@fbelzunc
Copy link
Contributor Author

BTW Good catch!

@alvarolobato
Copy link
Member

🐝 provided it works. Should be released after envinject 1.24

@alvarolobato
Copy link
Member

actually @fbelzunc thinking about it, what happens if the Matrix plugin is not installed?. Can you make a quick test?, I suspect it will fail too. Maybe we should change the code on envinject to check that the MatrixRun class exists

@fbelzunc
Copy link
Contributor Author

@alvarolobato We are testing it... but if it is not installed it is a plugin dependency issue like happens in a lot of plugins, doesn't it? So I think this should be fine...

@dariver
Copy link

dariver commented Jun 23, 2016

@alvarolobato @fbelzunc AFAIK Matrix plugin is a bundle plugin in 1.565.1 version

@fbelzunc
Copy link
Contributor Author

fbelzunc commented Jul 1, 2016

@oleg-nenashev @alvarolobato Can I have your bee here?

@oleg-nenashev
Copy link
Member

🐝

1 similar comment
@alvarolobato
Copy link
Member

🐝

@fbelzunc
Copy link
Contributor Author

fbelzunc commented Jul 1, 2016

@reviewbybees done

@fbelzunc fbelzunc changed the title [JENKINS-36184] Add matrix as optional dependency [JENKINS-36184] Update Env-inject-lib dependency Jul 1, 2016
@fbelzunc fbelzunc changed the title [JENKINS-36184] Update Env-inject-lib dependency [JENKINS-36184] Update env-inject-lib dependency Jul 1, 2016
@fbelzunc fbelzunc changed the title [JENKINS-36184] Update env-inject-lib dependency [JENKINS-36184] Update envinject-lib dependency Jul 1, 2016
@fbelzunc fbelzunc merged commit ca3d584 into jenkinsci:master Jul 1, 2016
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

Successfully merging this pull request may close these issues.

6 participants