-
Bug
-
Resolution: Fixed
-
Blocker
-
None
After upgrading to Netsparker plugin version 2.0.0 , It starts giving error immediately after starting scan.
> Netsparker Enterprise Plugin: Scan step created...
> Netsparker Enterprise Plugin: Requesting scan...
> Netsparker Enterprise Plugin: Response status code: 201
> Netsparker Enterprise Plugin: Scan requested successfully.
> Netsparker Enterprise Plugin: Requesting scan info...
> Netsparker Enterprise Plugin: Response scan info status code: 400
> Netsparker Enterprise Plugin: Get scan info error
ERROR: > Netsparker Enterprise Plugin: null
> Netsparker Enterprise Plugin: Requesting scan cancel...
> Netsparker Enterprise Plugin: Response scan cancel status code: 200
i faced the similar issues, and asked the netsparker support. It turned out there are 3 additional mandatory parameters in v2 that must be stated in our Jenkins pipeline script:
My script goes like this and successfully running again:
step([$class: 'NCScanBuilder', ncApiToken: '$APITOKEN', ncScanType: 'FullWithPrimaryProfile', ncWebsiteId: 'ed9f0xxxxxxxxxxxf03f0b886', ncDoNotFail: true, ncConfirmed: false, ncIgnoreFalsePositive: false, ncIgnoreRiskAccepted: false])
Hope it helps.