question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dependencyTrackPublisher artifact: 'dependency-check-report.xml', artifactType: 'scanResult', projectId: 'Unable to retrieve projects. Received status code: 404'

See original GitHub issue

Hi, i can’t find why … no log or more info…

When i go in Jenkins -> Pipeline Syntax: Snippet Generator

I chose dependencyTrackPublisher … for projectId, i receive this message : ‘Unable to retrieve projects. Received status code: 404’

I create my project in dependency-track, i have this id, in URL … a5b42356-3608-4513-8f56-35dc70690402

if i try to run the snippet in my pipeline : dependencyTrackPublisher artifact: 'dependency-check-report.xml', artifactType: 'scanResult', projectId: 'a5b42356-3608-4513-8f56-35dc70690402'

so i receive this error : [Pipeline] [Analyse Code Security] dependencyTrackPublisher [Analyse Code Security] [DependencyTrack] Publishing artifact to Dependency-Track [Pipeline] [Analyse Code Security] echo [Analyse Code Security] Exception thrown: [Analyse Code Security] java.lang.NullPointerException [Pipeline] [Analyse Code Security] echo [Analyse Code Security] Stacktrace: [Pipeline] [Analyse Code Security] } [Pipeline] [Analyse Code Security] // script [Pipeline] [Analyse Code Security] } [Pipeline] [Analyse Code Security] // withEnv [Pipeline] [Analyse Code Security] } [Pipeline] [Analyse Code Security] // stage [Pipeline] [Analyse Code Security] } i have a jenkins prod server. I install in my local docker environnement Dependency-Track and port 8080 is open. The server can ping and wget on my http:/ip:8080/

I setup the “Dependency-Track URL” and “API key” in my Master Jenkins server.

… so i don’t understand why this don’t work … i don’t see any errors in logs or something.

Regards Mortagne

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stevespringettcommented, Apr 10, 2018

The VIEW_PORTFOLIO permission has been added as a default for all new installations going forward. However, please add the permission to resolve the issue. Example: add-view-portfolio-permission

0reactions
lock[bot]commented, Sep 27, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OWASP Dependency Tracker - Jenkins build error
I am Getting 403 Forbidden error while testing OWASP Dependency Tracker ... dependencyTrackPublisher artifact: 'target/bom.xml', projectId: ...
Read more >
OWASP Dependency-Track - Jenkins Plugins
This plug-in publishes Software Bill-of-Materials (SBOM) to Dependency-Track for continuous analysis. This plugin supports CycloneDX and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found