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 added a comment -

          Can you kindly share your jenkinsfile

          Marky Jackson added a comment - Can you kindly share your jenkinsfile
          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 added a comment -

          uploaded Jenkinsfile and csfAnchoreScan.groovy jequals5

          Anthony Guo added a comment - uploaded Jenkinsfile and csfAnchoreScan.groovy jequals5

          Marky Jackson added a comment -

          What version of Jenkins are you on?

          Marky Jackson added a comment - What version of Jenkins are you on?

          Anthony Guo added a comment -

          Jenkins ver. 2.204.2

          Anthony Guo added a comment - Jenkins ver. 2.204.2

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

              Created:
              Updated: