File path in artifacts block can't render variable names

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 132

      Issue Summary

      Define a file path in artifacts block in bitbucket-pipelines.yaml fails to render the value and generate artifacts.

      Steps to Reproduce

      • Use the following config:
      ..
      ..
      - step:
          name: Test
          script:
               - mkdir app && ls && git archive --format=zip master -o ./app/$APP_NAME.zip && ls ./app
          artifacts:
               - app/$APP_NAME.zip
      

      Artifacts won't be generated.

      Expected Results

      It should generate an artifact with name $APP_NAME.zip

      Actual Results

      Workaround

      To use glob patters:

      ..
      - step:
          name: Test
          script:
               - mkdir app && ls && git archive --format=zip master -o ./app/$APP_NAME.zip && ls ./app
          artifacts:
               - app/*.zip
      

            Assignee:
            Unassigned
            Reporter:
            Saurabh Singh (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: