Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-18672

API to get Xray Scan Status for an artifact

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.5.9
    • Fix Version/s: None
    • Component/s: Xray
    • Labels:
      None
    • Environment:

      TFS for CI server (setup build-jobs) and

      Artifactory plugin (for publishing/resolving to/from Artifactory).

       

      Description

      Create separate jobs for CI and CD process on TFS.

      The CD process gets immediately triggered after CI process.

      Since the artifact is still not scanned, CD job fails to download this artifact (Repository has blocking policy for unscanned artifacts) .

       

      We can see the scan status for an artifact on UI, using the following URL

      curl -u admin:password "http://<artifactory-url>/artifactory/ui/artifactxray?path=<path-to-artifact>&repoKey=<repo-name>"

       

      But, there is no REST API to get the Xray status in build job, using cURL OR TFS Artifactory plugin.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sanjeevk Sanjeev Karani
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: