-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
There are several ways to publish data to the Black Duck Hub and the Jenkins plugin is one of them. However, there is also a Maven plugin and Gradle plugin. The latter two allow builds to continue and succeed even if the Black Duck Hub is unavailable.
However, this option has not yet made it into the Jenkins plugin. It would be nice for parity to allow builds to succeed even if Black Duck Hub is unavailable (or the data fails to upload for some other reason). At the moment the build is marked unstable if Black Duck Hub is unavailable; from one of our builds:
Initializing - Hub Jenkins Plugin - 2.2.1
Starting BlackDuck Scans...
java.lang.IllegalStateException: Invalid Configuration: HUBURL = ERROR,Can not reach this server : https://hubqualtrics.blackducksoftware.com
java.lang.IllegalStateException: Invalid Configuration: HUBURL = ERROR,Can not reach this server : https://hubqualtrics.blackducksoftware.com
{{ at com.blackducksoftware.integration.builder.AbstractBuilder.build(AbstractBuilder.java:47)}}
{{ at com.blackducksoftware.integration.hub.builder.HubServerConfigBuilder.build(HubServerConfigBuilder.java:82)}}
{{ at com.blackducksoftware.integration.hub.jenkins.scan.BDCommonScanStep.runScan(BDCommonScanStep.java:257)}}
{{ at com.blackducksoftware.integration.hub.jenkins.PostBuildHubScan.perform(PostBuildHubScan.java:194)}}
{{ at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)}}
{{ at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)}}
{{ at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)}}
{{ at hudson.model.Build$BuildExecution.post2(Build.java:185)}}
{{ at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)}}
{{ at hudson.model.Run.execute(Run.java:1763)}}
{{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
{{ at hudson.model.ResourceController.execute(ResourceController.java:98)}}
{{ at hudson.model.Executor.run(Executor.java:410)}}Finished running Black Duck Scans.
Build step 'Black Duck Hub Integration' changed build result to UNSTABLE
For Maven the related items were:
For Gradle the related item was:
- https://github.com/blackducksoftware/hub-gradle-plugin/issues/16