Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62040

pipeline cannot find and archiveArtifacts anchore.json after anchore plugin scan

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Trivial
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      openstack, linux

      Enterprise Client Version: 0.6.0
        Anchore Engine Version: 0.6.0
        Anchore DB Version: 0.0.12
    • Similar Issues:

      Description

      1. Jenkins anchore plugin scan docker image,
      then archive artifacts: '**/*.json',
      But no anchore.json archived, this anchore.json is missing

      2. Jenkins anchore plugin scan docker image,
      then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
      No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?

       
      13:07:39 ‘anchore*.json’ doesn’t match anything*

      13:07:39* No artifacts found that match the file pattern "anchore*.json". Configuration error?

       

      So, how to archive the anchore.json file?

      Enterprise Client Version: 0.6.0
      Anchore Engine Version: 0.6.0
      Anchore DB Version: 0.0.12

        Attachments

          Activity

          guobaisheng Anthony Guo created issue -
          jequals5 Marky Jackson made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          guobaisheng Anthony Guo made changes -
          Attachment Jenkinsfile.txt [ 51073 ]
          guobaisheng Anthony Guo made changes -
          Attachment csfAnchoreScan.groovy [ 51074 ]
          guobaisheng Anthony Guo made changes -
          Attachment csfAnchoreScan.groovy [ 51074 ]
          guobaisheng Anthony Guo made changes -
          Attachment csfAnchoreScan.groovy [ 51075 ]
          guobaisheng Anthony Guo made changes -
          Description 1. Jenkins anchore plugin scan docker image,
          then archive artifacts: '**/*.json',
          But no anchore.json archived, this anchore.json is missing

          2. Jenkins anchore plugin scan docker image,
          then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
          No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?


          So, how to archive the anchore.json file?


          Enterprise Client Version: 0.6.0
            Anchore Engine Version: 0.6.0
            Anchore DB Version: 0.0.12
          1. Jenkins anchore plugin scan docker image,
           then archive artifacts: '***/**.json',
           But no anchore.json archived, this anchore.json is missing

          2. Jenkins anchore plugin scan docker image,
           then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
           No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?

          So, how to archive the anchore.json file?

          Enterprise Client Version: 0.6.0
           Anchore Engine Version: 0.6.0
           Anchore DB Version: 0.0.12
          guobaisheng Anthony Guo made changes -
          Description 1. Jenkins anchore plugin scan docker image,
           then archive artifacts: '***/**.json',
           But no anchore.json archived, this anchore.json is missing

          2. Jenkins anchore plugin scan docker image,
           then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
           No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?

          So, how to archive the anchore.json file?

          Enterprise Client Version: 0.6.0
           Anchore Engine Version: 0.6.0
           Anchore DB Version: 0.0.12
          1. Jenkins anchore plugin scan docker image,
           then archive artifacts: '***/**.json',
           But no anchore.json archived, this anchore.json is missing

          2. Jenkins anchore plugin scan docker image,
           then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
           No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?

           
          *13:07:39* ‘anchore*.json’ doesn’t match anything*13:07:39* No artifacts found that match the file pattern "anchore*.json". Configuration error?

          So, how to archive the anchore.json file?

          Enterprise Client Version: 0.6.0
           Anchore Engine Version: 0.6.0
           Anchore DB Version: 0.0.12
          guobaisheng Anthony Guo made changes -
          Description 1. Jenkins anchore plugin scan docker image,
           then archive artifacts: '***/**.json',
           But no anchore.json archived, this anchore.json is missing

          2. Jenkins anchore plugin scan docker image,
           then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
           No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?

           
          *13:07:39* ‘anchore*.json’ doesn’t match anything*13:07:39* No artifacts found that match the file pattern "anchore*.json". Configuration error?

          So, how to archive the anchore.json file?

          Enterprise Client Version: 0.6.0
           Anchore Engine Version: 0.6.0
           Anchore DB Version: 0.0.12
          1. Jenkins anchore plugin scan docker image,
           then archive artifacts: '***/**.json',
           But no anchore.json archived, this anchore.json is missing

          2. Jenkins anchore plugin scan docker image,
           then archive artifacts: 'AnchoreReport.${JOB_BASE_NAME}_${BUILD_NUMBER}/*.json',
           No artifacts found that match the file pattern "AnchoreReport.CSF-Anchore-Scan_82/*.json". Configuration error?

           
           *13:07:39* ‘anchore*.json’ doesn’t match anything*

          13:07:39* No artifacts found that match the file pattern "anchore*.json". Configuration error?

           

          So, how to archive the anchore.json file?

          Enterprise Client Version: 0.6.0
           Anchore Engine Version: 0.6.0
           Anchore DB Version: 0.0.12
          jequals5 Marky Jackson made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          guobaisheng Anthony Guo made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          jequals5 Marky Jackson made changes -
          Priority Blocker [ 1 ] Trivial [ 5 ]
          jequals5 Marky Jackson made changes -
          Assignee Marky Jackson [ jequals5 ]
          walthhy Tony Wen made changes -
          Comment [ Hi, [~jequals5], I found more interesting things on our system.

          Anchore reports related artifacts got published and desplayed well, however when there's a new scan/build finished on the same jenkins jobs, previous artifacts are missing. we can only see the details for the latest scan,  it is exepected? i thought artifacts should be maintained per build, should not over-writed/deleted by other builds. ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            guobaisheng Anthony Guo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: