jfrog-azure-devops-extension icon indicating copy to clipboard operation
jfrog-azure-devops-extension copied to clipboard

jfrog xray scan report integration with Azuredevops task

Open vivuu1989 opened this issue 1 year ago • 1 comments

We are using Azuredevops Jfrog tasks to build our mvn/npm/gradle projects and, using the below jfrog publish buildinfo and scan task to get the violation list. But as part of the same pipeline , we are planning for automated way (either by script or Azuredevops task) to create a report in xray by including the pipeline used "source Repo" and the build scope of the same pipeline.

Tried the XRAY api options, but failed to to generate it dynamically as part of the pipeline with these dynamic scopes.

  - task: JFrogPublishBuildInfo@1
    name: publishBInfo
    displayName: 'Publish Build Info to JFrog'
    condition: succeeded()
    inputs:
      artifactoryConnection: 'myserviceconnection'
      buildName: '$(Build.DefinitionName)'
      buildNumber: '$(Build.BuildNumber)'

  - task: JFrogBuildScan@1
    enabled: false
    name: xrayScan
    displayName: 'Security Scan'
    condition: succeeded()
    inputs:
      xrayConnection: 'myserviceconnection'
      buildName: '$(Build.DefinitionName)'
      buildNumber: '$(Build.BuildNumber)'
      allowFailBuild: true
      vuln: true

vivuu1989 avatar Jun 09 '23 18:06 vivuu1989

Any guidance?

vivuu1989 avatar Jun 11 '23 16:06 vivuu1989