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

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • openstack, linux

      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

          [JENKINS-62040] pipeline cannot find and archiveArtifacts anchore.json after anchore plugin scan

          Anthony Guo created issue -
          Marky Jackson made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Anthony Guo made changes -
          Attachment New: Jenkinsfile.txt [ 51073 ]
          Anthony Guo made changes -
          Attachment New: csfAnchoreScan.groovy [ 51074 ]
          Anthony Guo made changes -
          Attachment Original: csfAnchoreScan.groovy [ 51074 ]
          Anthony Guo made changes -
          Attachment New: csfAnchoreScan.groovy [ 51075 ]
          Anthony Guo made changes -
          Description Original: 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
          New: 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
          Anthony Guo made changes -
          Description Original: 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
          New: 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
          Anthony Guo made changes -
          Description Original: 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
          New: 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
          Marky Jackson made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: In Progress [ 3 ] New: Closed [ 6 ]
          Anthony Guo made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

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

              Created:
              Updated: