pipe: atlassian/bitbucket-upload-file:0.1.x is failing

Craig Turner June 4, 2020

Hi there,

It looks like an update was made yesterday to bitbucket-upload-file which is causing a failure.  Here is the pipeline step:

script:

- zip -r dist-staging.zip public/staging/dist/

- pipe: atlassian/bitbucket-upload-file:0.1.5

 

Here is the failure:

Status: Downloaded newer image for bitbucketpipelines/bitbucket-upload-file@sha256:e853a53befe6f3ec91449c37b8c74ad74730902a2896289069a400266f15657c

Traceback (most recent call last): File "/pipe.py", line 77, in <module> pipe = UploadFilePipe(schema=schema, pipe_metadata=metadata, check_for_newer_version=True) File "/usr/local/lib/python3.7/site-packages/bitbucket_pipes_toolkit/core.py", line 267, in __init__ self.check_for_newer_version() File "/usr/local/lib/python3.7/site-packages/bitbucket_pipes_toolkit/core.py", line 289, in check_for_newer_version if tuple(map(int, latest_version.split('.'))) > tuple(map(int, current_version.split('.'))):ValueError: invalid literal for int() with base 10: '5@sha256'

 

Here I believe is where the issue lies:

https://bitbucket.org/atlassian/bitbucket-upload-file/commits/cff8dabb7a92704eb8a7cf4810a98ad14c0680b0#Lpipe.ymlT2

 

Can you look to resolve?

 

Thanks,

Craig.

1 answer

1 accepted

1 vote
Answer accepted
drichards-lightwell June 4, 2020
Craig Turner June 5, 2020

thanks @drichards-lightwell are you aware of a possible workaround in the meantime? or should we wait until a fix is in place?

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2020

Thanks @Craig Turner for reporting!

Here is correct workaround, in Duplicated queston .

Fixed release  (we need to review changes) will be in few days, I will notify

 

Cheers, Galyna

Like drichards-lightwell likes this
Craig Turner June 5, 2020

@Halyna Berezovska awesome, thanks, we'll revert to 0.1.1 in our pipelines for now.

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2020

@Craig Turner @drichards-lightwell  try, please, version 0.1.6, it should work now

drichards-lightwell June 5, 2020

@Halyna Berezovska 0.1.6 did work for me.

Any chance in getting it back ported into 0.1.4 so our current pipelines can complete successfully? :) 

Thanks in advance!

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2020

@drichards-lightwell  I am not sure about the porting. It will be known next week.

But if it is simple for you to just update, it is the most recommended way

 

Cheers, Galyna

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2020

Actually there are no such changes since 0.1.4 that affect functionality of uploading files.

drichards-lightwell June 5, 2020

I just reran our pipeline for a production deploy step that uses 0.1.4 and it still failed with the same error. Let me know if I can assist with more details.

File "/usr/local/lib/python3.7/site-packages/bitbucket_pipes_toolkit/core.py", line 289, in check_for_newer_version if tuple(map(int, latest_version.split('.'))) > tuple(map(int, current_version.split('.'))):ValueError: invalid literal for int() with base 10: '6@sha256'

Craig Turner June 8, 2020

@Halyna Berezovska thanks, 0.1.6 is working for us too.

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2020

@drichards-lightwell hello, try, please, again , your version. I rechecked it

drichards-lightwell June 9, 2020

I can confirm it worked, thanks for the fix! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events