Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble with codesonar plugin after moving a job from jenkins to cloudbees #67

Open
mcote-57 opened this issue May 19, 2020 · 4 comments

Comments

@mcote-57
Copy link

mcote-57 commented May 19, 2020

the job was successful in regular jenkins, plugin version 2.0.8. when I moved it to my cloudbees instance, the version of the codesonar plugin went up to the latest. then the failures started.
CloudBees Jenkins Distribution 2.222.1.1-rolling
plugin version - 2.0.9
Here is the command line that fails now:
codesonar conditions: [redAlerts(warrantedResult: 'FAILURE')], credentialId: "${CREDENTIALS}", hubAddress: 'xxx', projectName: 'thor/ui/builder/thor', protocol: 'http'
I can navigate to the project and see analysis, but the plugin give me this error:

Project by the name thor/ui/builder/thor was not found on the hub

@atombrella
Copy link
Contributor

projectName: 'thor/mp/builder/thor' but you write thor/ui/builder/thor? I think it's difficult to see exactly what's wrong now without the analyze command, as well. If you don't want to share this information on public Github, you're welcome to write me an email: mads.jensen@eficode.com

@mcote-57
Copy link
Author

sorry it was just my cut and pasting. the project paths match in my jenkins console log.

@atombrella
Copy link
Contributor

Sorry for the wait! I'm still not quite sure what could be wrong with the setup after the change to the CloudBees instance. It also happens when you just trigger the build manually? I have some attempts to set up some test environment, where "project by the name ... not found on the hub" seem to pop up when the analyze command failed.

@mcote-57
Copy link
Author

mcote-57 commented Jun 1, 2020

I see this when there is a valid run of the build. The analysis report is in the hub. the plugin command doesn't find it. I have tried manually running the codesonar conditions command in jenkins pipeline using all variations of the path to the analysis in the hub without success unless the analysis is at the top level of the hub path. So, this path fails... thor/ui/builder/thor, so does thor alone, or just ui/builder/thor. but if I set the build to create the analysis at thor/builder_mp_ui, it is found with no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants