Have set up code analysis using sonar hudson and maven
My plan is to run the analysis everyday so I am trying to pass the parameter in Hudson as :
clean install sonar:sonar -Dsonar.dynamicAnalysis=reuseReports **-Dsonar.projectDate=yyyy- MM-dd**
Rather than entering / changing date everyday manually – is there a way I can make it a parameter which automatically changes everyday ?
Thanks
satish
Are you looking for the date/time of execution? Could you try to use -Dsonar.projectDate=${BUILD_ID} as a parameter? Check out localhost:8080/env-vars.html for available arguments you can pass to the sonar plugin.