[JIRA] (JENKINS-60448) Allow specification of error when deptrack server can't be reached

6 views
Skip to first unread message

jenkins@richardlee.name (JIRA)

unread,
Dec 11, 2019, 12:28:03 PM12/11/19
to jenkinsc...@googlegroups.com
Richard Lee created an issue
 
Jenkins / New Feature JENKINS-60448
Allow specification of error when deptrack server can't be reached
Issue Type: New Feature New Feature
Assignee: Steve Springett
Components: dependency-track-plugin
Created: 2019-12-11 17:27
Priority: Minor Minor
Reporter: Richard Lee

It would be useful to be able to differentiate between a failure of the deptrack step to communicate with the deptrack server from a failure to meet thresholds.  It appears from the code that there are comments that the error should be configurable.  See https://github.com/jenkinsci/dependency-track-plugin/blob/master/src/main/java/org/jenkinsci/plugins/DependencyTrack/DependencyTrackPublisher.java#L200

However, I also find it a little odd that the step is directly setting the build result rather than throwing an exception of some sort.  The build will merrily continue on its way with a failed rather than immediately stopping (unless the pipeline owner has decided to try/catch around the call). 

Most other step throw exceptions when they encounter errors so that the build stops executing.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jenkins@richardlee.name (JIRA)

unread,
Dec 11, 2019, 2:00:03 PM12/11/19
to jenkinsc...@googlegroups.com

jenkins@richardlee.name (JIRA)

unread,
Dec 11, 2019, 2:01:01 PM12/11/19
to jenkinsc...@googlegroups.com
Change By: Richard Lee
Status: Open Fixed but Unreleased
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages