Closed bgaoprovidertrust closed 4 years ago
Hi @bgaoprovidertrust,
Please make sure you're using the "public ID" (not the internal ID or display name) of your application in IQ Server. You can find it in the web UI in the section "Orgs and Policies" by selecting the application and checking the value between parenthesis or clicking the "Actions" button and then "App ID to Clipboard":
Please let us know if that helps.
Yup, I've verified that I've used the result from App ID to Clipboard
, still no go.
After playing around with my user role with our sonatype admin, it seemed like I needed different roles than what I had before. The scan/plugin is working now when I have Application Evaluator
and Component Evaluator
roles.
To prevent future issues like this, I feel like either the documentation or the error message could be improved. I could change this issue to indicate that, or close this issue and make a new feature request. How would you like to proceed?
Thanks for the feedback! There is no need for a new issue, this one should be enough :)
Describe the bug When I run the nexusIQScan task, I get the following error:
Could not scan the project: Application ID APP_ID doesn't exist and couldn't be created
, where theAPP_ID
corresponds to my project.EDIT: After further testing, it looks like my role was the issue. Once I was given the
Application Evaluator
andComponent Evaluator
roles, the plugin worked as expectedI've verified that the properties in nexusIQScan seem to be correct
username
andpassword
to login via theserverUrl
. TheserverUrl
is in the format ofhttps://SUBDOMAIN.COMPANYDOMAIN.com/
applicationId
from sonatype nexusTo Reproduce Steps to reproduce the behavior:
./gradlew nexusIQScan
from my project root directoryExpected behavior A scan result from sonatype, or an error message indicating that the problem might be permissions-related.
Screenshots N/A
Desktop (please complete the following information):
Additional context Here's the result from running
./gradlew nexusIQScan --stacktrace