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

The pipe bitbucket-upload-file fails if the repository name consists of only numbers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • Pipelines - Pipes
    • None

    Description

      Issue Summary

      The pipe bitbucket-upload-file fails if the name of the repository you are uploading to consists of only numbers

      Steps to Reproduce

      1. Create a Bitbucket Cloud repo with a name that consists of only numbers, e.g. 123987
      2. In a different repository (repo B), set up Pipelines and use the bitbucket-upload-file pipe to upload a file to the Downloads section of repo '123987' as follows:
        - pipe: atlassian/bitbucket-upload-file:0.3.2
           variables:
             BITBUCKET_USERNAME: $BITBUCKET_USERNAME
             BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
             FILENAME: 'sample.war'
             ACCOUNT: 'my-workspace'
             REPOSITORY: '123987'
      3. Run a build in a repo B

      Expected Results

      The pipelines build succeeds and the file sample.war is uploaded in the Downloads section of repo the named 123987

      Actual Results

      The pipe command fails with the error:

      ✖ Validation errors: 
      REPOSITORY:
      - must be of string type
      

      Workaround

      The only workaround at the moment is to rename the repo named 123987 and add at least one letter or a dash in its name

      Attachments

        Activity

          People

            3f73154ed362 Liam Nunns
            tboudale Theodora Boudale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: