Whitesource Bolt fails to generate reports

266 Views Asked by At

enter image description here

I have integrated Whitesource Bolt to Azure Pipelines but its failing to generate the reports.I have entered the activation codes and the process runs in the pipeline as well .Also the Whitesource Bolt tab is not showing up on my project sidebar. Any ideas? Thanks in advance

1

There are 1 best solutions below

0
On BEST ANSWER
  - task: PowerShell@2
    inputs:
      targetType: 'inline'
      script: |
        $params = "$env:SONARQUBE_SCANNER_PARAMS" -replace '"sonar.branch.name":"[\w,/,-]*"\,?'
        Write-Host "##vso[task.setvariable variable=SONARQUBE_SCANNER_PARAMS]$params"

The issue was the branch I was testing on was not the default branch of the repo. Therefore use the above task to override the branch name