We have a Jenkins master/slave setup where all jobs build run on slaves.
As the dependency check is so slow I decided to add it to the job pipeline SonarQube 5.1.1 jobs.
This job checks out the Java code, uses Maven 3.2.3 and the setVersion plugin to set the version number in the POMs then runs mvn clean install with -Dtest=false required by Sonar.
We then call OWASP Dependency-Check Plugin v1.2.11.1 pointing to the WEB-INF lib directory and the JARs; it runs with all of the defaults.
The analysis report is then published as a post-build task. Then it is archived, the build description modified and then the Sonar task is invoked.
Anyway I triggered this job manually and had the dependency check come back with 2 warnings in some Spring libraries.
I then fiddled around with the Sonar part of the job trying to get the dependency report displayed in Sonar and get it by adding -Dsonar.dependencyCheck.reportPath=${WORKSPACE}/dependency-check-report.xml in the additional properties.
So I then ran the job again expecting to get the same 2 warnings and having them appear in Sonar but was stunned when the Dependency-Check reported that 2 warnings had been fixed. The Subversion repo was on the same revision. The jobs ran at 23-Jul-2015 15:27 then 23-Jul-2015 16:42 AEST so an hour and a quarter between them
Am I missing something here? Is it not idempotent? Or did the dependency database change in that time window?
Thanks
Paul