Preconditions for delivering a changeset
![]()
Is there a way to perform a static code analysis with PMD & CheckStyle on the items contained in a changeset - and inhibt the delivery of the changeset if there are critical or major findings ?
|
Accepted answer
![]()
You will need to write a client side plug-in for "preconditions". This plugin would somehow get the feed from static analysis and make the precondition fail for delivery operation when all the checks are not met. The article https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation provides information on how to write preconditions.
Martin Keßler selected this answer as the correct answer
Comments 1
We had a software analyzer that did this. There needs to be some information available that the client can access, or it would have to run an eval, like the JUnit precondition does.
Hi Ralph, I set up the workshop and have my local jts running. On startup it says "Listening for transport dt_socket at address: 3388" and I can connect the Eclipse Debugger to it. But it does not stop on breakpoints, even with suspend=y. I noticed that the line numbers differ between runtime and source. When I look at the stacktrace of the "Active Services" call e.g. I see:
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The ServerStatusRestService is part of the SDK and not part of the workshop. It will always be the version you installed. If you have discrepancies, you failed to install and setup the SDK properly. E.g. set up Tomcat in a different version of the SDK is the only reason that comes into my mind how that could happen.
well, looks like I downloaded the 4.0 web installer but the 4.0.6 SDK...
|