{"action":"created","issue":{"url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/1486","repository_url":"https://api.github.com/repos/jeremylong/DependencyCheck","labels_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/1486/labels{/name}","comments_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/1486/comments","events_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/1486/events","html_url":"https://github.com/jeremylong/DependencyCheck/issues/1486","id":359123720,"node_id":"MDU6SXNzdWUzNTkxMjM3MjA=","number":1486,"title":"Silent failure with missing artifact during publish to DependencyTrack","user":{"login":"putz612","id":952758,"node_id":"MDQ6VXNlcjk1Mjc1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/952758?v=4","gravatar_id":"","url":"https://api.github.com/users/putz612","html_url":"https://github.com/putz612","followers_url":"https://api.github.com/users/putz612/followers","following_url":"https://api.github.com/users/putz612/following{/other_user}","gists_url":"https://api.github.com/users/putz612/gists{/gist_id}","starred_url":"https://api.github.com/users/putz612/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/putz612/subscriptions","organizations_url":"https://api.github.com/users/putz612/orgs","repos_url":"https://api.github.com/users/putz612/repos","events_url":"https://api.github.com/users/putz612/events{/privacy}","received_events_url":"https://api.github.com/users/putz612/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-11T16:25:50Z","updated_at":"2018-09-13T18:33:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have added the publish to DependencyTrack to my pipeline however during testing I noticed that if it could not find the artifact the build would fail in the console output it would not really state that it was a hard failure.  Looking at the pipeline steps every stage would show success making harder to determine the cause of the failure.\r\n\r\nFrom the logs\r\n\r\n> ........\r\n> [Pipeline] dependencyTrackPublisher\r\n> [DependencyTrack] Publishing artifact to Dependency-Track\r\n> [DependencyTrack] The specified artifact does not exist\r\n> ........\r\n> Finished: FAILURE"},"comment":{"url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/comments/421107924","html_url":"https://github.com/jeremylong/DependencyCheck/issues/1486#issuecomment-421107924","issue_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/1486","id":421107924,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTEwNzkyNA==","user":{"login":"putz612","id":952758,"node_id":"MDQ6VXNlcjk1Mjc1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/952758?v=4","gravatar_id":"","url":"https://api.github.com/users/putz612","html_url":"https://github.com/putz612","followers_url":"https://api.github.com/users/putz612/followers","following_url":"https://api.github.com/users/putz612/following{/other_user}","gists_url":"https://api.github.com/users/putz612/gists{/gist_id}","starred_url":"https://api.github.com/users/putz612/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/putz612/subscriptions","organizations_url":"https://api.github.com/users/putz612/orgs","repos_url":"https://api.github.com/users/putz612/repos","events_url":"https://api.github.com/users/putz612/events{/privacy}","received_events_url":"https://api.github.com/users/putz612/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T18:33:41Z","updated_at":"2018-09-13T18:33:41Z","author_association":"CONTRIBUTOR","body":"Is there a way to fail the step vs the build so you can see where the failure is?  I was using the verbiage described in another plugin that users were reporting similar results.  Probably the best known is in archiveArtifacts on https://issues.jenkins-ci.org/browse/JENKINS-38005\r\n\r\nThere is two PR with different ways of failing the step and/or better log messages.  Not very good at Java but I will try to see what I can do to help.\r\nhttps://github.com/jenkinsci/jenkins/pull/2823\r\nhttps://github.com/jenkinsci/workflow-basic-steps-plugin/compare/86af7fdf73cd...05bf1fb6446d\r\n\r\n"}}
{"actor":{"display_login":"putz612"}}