Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17855

Allow backwards recursive artifact definition for Pipelines

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      Let's suppose we have a directory tree that looks like this in this case:

      #!bash
      
      a
      |
      -test
        |
        -test1.txt
      |
      b
      |
      -test
        |
        -test2.txt
      |
      test
      |
      -test3.txt
      

      On Pipelines, it's possible to define recursive artifacts for folders below the specified folder using glob patterns like this:

      #!bash
      
      artifacts:
        - test/**
      

      On our directory tree above, this would only fetch the "test3.txt"file

      However, it's not possible to use a glob pattern to fetch every folder with the same name under every existing folder recursively, like this:

      #!bash
      
      artifacts:
        - **/test
      

      ^The validator does not allow a definition like this. In this case, the desired behavior would be to fetch the test1.txt and test2.txt files without having to manually define the artifacts like this:

      #!bash
      
      artifacts:
        - a/**
        - b/**
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lmontiel@atlassian.com Leonardo M
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: