Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1116

Adding Exclude Patterns in pipeline script will still update build info with the excluded artifacts results in failure of build promotion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 2.15.0
    • Fix Version/s: 3.1.1
    • Component/s: None
    • Labels:
      None

      Description

      When we Add exclude patterns in Pipeline script, its observed the Artifacts are still been included in the build info and an incomplete build is recorded in Artifactory. This results in build promotion failures.

       
      ERROR: Promotion failed during dry run (no change in Artifactory was done): HTTP/1.1 400 Bad Request
      {
      "errors" : [

      { "status" : 400, "message" : "Unable to find artifacts of build 'mypipeline' #96: aborting promotion." }

      ]
      }
      ERROR:
      Steps to reproduce:- 

      1. Add an exclude pattern on the build that blocks an artifact upload

      2. Run the build with promotion config
      3. Observe an incomplete build is recorded in Artifactory

      4. Observe Promotion fails 

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yahavi Yahav Itzhak
              Reporter:
              balajis Balaji Satish
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: