I'm trying to enable the violations and the Checkstyle option only in my "Build Settings" section of my Jenkins job and below is the code snippet :
publishers {
violations(100)
checkstyle('') {
}
}
It works fine but the violations and checkstyle configurations gets generated on the "Post-Build Actions" section rather in "Build Settings" section.
I'm looking to configure my job like below :
but I'm getting the Job configuration like below:
Is it possible to just the enable the 'violations' and 'Publish CheckStyle Analysis Results' checkboxes on the "Build Settings" section of my Job ONLY.
Jenkins Version - 2.32.2
Job DSL - 1.57
violations plugin - 0.7.11
Checkstyle plugin - 3.47
P.S. I did a restart too after I installed the above plugins but the same problem.
Any advise pls. Thanks.