I use Jenkins CI as the build server in the project I'm working on, I also use Klocwork as a static analysis tool to determine deviations from our coding standards.
Jenkins currently has two assemblies (performed in separate directories), a full nightly build that wipes the workspace and performs a new check and a complete rebuild of everything. In addition to nightly builds, I also have incremental builds for 15 minutes. Both builds use the Klocwork analysis tool.
Klockwork works by displaying a list of potential problems that can then be fixed or chosen to be ignored if they are not applicable to the project when problems are ignored. Klocwork uses assembly file paths to remember where there were problems that were ignored. This means that when in Klocwork I once ignored a warning in a full assembly and an incremental build starts, the warning returns again, because the build path is different.
The most reasonable solution that I see in this is that Jenkins does all his work on a nightly basis, but for incremental builds do the update at the full build location and then do incremental builds in the same way that the IDE on the PC works.
The problem is that Jenkins starts the full assembly and incremental assembly as two separate jobs, due to which they can be checked in different places, and I can not find a way to share the two jobs in a common directory. Also, I canโt find a way to have one task that performs a full night check and rebuild, as well as an incremental build with an update when registering at the same time.
Does anyone know how to get Jenkins to use a common source directory for multiple jobs?
Thank you very much,
Pete.
source share