Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
Severity 2 - Major
-
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
- Create a Bitbucket Cloud repo with a name that consists of only numbers, e.g. 123987
- 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'
- 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