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
Support Build Failure Analyser plugin #51
Conversation
Support Build Failure Analyser plugin
This pull request looks good, thanks for your contribution, @drekbour ! |
Hi @drekbour, there seems to be an issue when trying to install the plugin on a stand-alone Jenkins instance.
What I'm getting is a failed installation and the following error:
Which could be potentially caused by this entry in the <dependency>
<!-- required for build-failure-analyser -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>1.5.0</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency> once the dependency on git is removed, Build Monitor installs correctly. Could you please elaborate a bit more on why is this dependency needed? Many thanks for your help, |
Update: Those seem to be bugs in the Build Failure Analyzer itself: I'll remove the dependency on git plugin from the Build Monitor; it seems like an optional dependency on BFA should be enough from the JBM point of view (after all it's BFA that needs to ensure that the git plugin is installed, not JBM). |
…nding on the git plugin. See #51 Dependency on the git plugin causes the following error during the installation of the Build Monitor: java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1304) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1103) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Failed to install build-monitor-plugin plugin at hudson.PluginManager.dynamicLoad(PluginManager.java:440) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1300) ... 6 more Caused by: java.io.IOException: Dependency git-client (1.0.6) doesn't exist at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:488) at hudson.PluginManager.dynamicLoad(PluginManager.java:430) ... 7 more
I remember there was something nasty about the git dependency of BFA, I probably made it work "for me" and didn't (couldn't actually) test on anything other than our local Jenkins. You need to defend your project from the likes of me :) but the project needs the (much slower) Jenkins Integration Tests in order to make that reasonable. Should I raise an Issue for an integration test (even if it's just an "installation test"!) |
I agree with having an integration test for any 3rd plugin Build Monitor supports - did you have a chance to look at https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test ? The API is really low-level, but seems like a good place to start. |
Initial work to enable integration (see #51) and acceptance testing.
Implementation for #41