Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload to bitbucket is failing with 'invalid literal for int()' on version checking

Gastón Cerioni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2020

logs from pipeline

+ docker container run \ --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \ --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \ --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \ --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \ --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-upload-file:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-upload-file \ --workdir=$(pwd) \ --label=org.bitbucket.pipelines.system=true \ --env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \ --env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \ --env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \ --env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \ --env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \ --env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \ --env=BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID="$BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID" \ --env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \ --env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \ --env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \ --env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \ --env=BITBUCKET_DEPLOYMENT_ENVIRONMENT="$BITBUCKET_DEPLOYMENT_ENVIRONMENT" \ --env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \ --env=CI="$CI" \ --env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \ --env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \ --env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \ --env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \ --env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \ --env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \ --env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \ --env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \ --env=DOCKER_HOST="tcp://host.docker.internal:2375" \ --env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \ --env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-upload-file" \ --env=BITBUCKET_APP_PASSWORD="$BITBUCKET_PASSWORD" \ --env=BITBUCKET_USERNAME="$BITBUCKET_USERNAME" \ --env=FILENAME="$FILE_NAME.apk" \ --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \ bitbucketpipelines/bitbucket-upload-file:0.1.4Unable to find image 'bitbucketpipelines/bitbucket-upload-file:0.1.4' locally0.1.4: Pulling from bitbucketpipelines/bitbucket-upload-filec499e6d256d6: Pulling fs layer62b0f1bf7919: Pulling fs layer30b7b8e6b50d: Pulling fs layerf4947adccc3c: Pulling fs layer219c07faa520: Pulling fs layer1fdd33e2f7a9: Pulling fs layerceb102cff1e0: Pulling fs layer8c00eb12c498: Pulling fs layer5c3f857c8dd5: Pulling fs layerf4947adccc3c: Waiting219c07faa520: Waiting1fdd33e2f7a9: Waitingceb102cff1e0: Waiting8c00eb12c498: Waiting5c3f857c8dd5: Waiting62b0f1bf7919: Verifying Checksum62b0f1bf7919: Download completef4947adccc3c: Verifying Checksumf4947adccc3c: Download completec499e6d256d6: Verifying Checksumc499e6d256d6: Download complete219c07faa520: Verifying Checksum219c07faa520: Download complete30b7b8e6b50d: Verifying Checksum30b7b8e6b50d: Download complete1fdd33e2f7a9: Verifying Checksum1fdd33e2f7a9: Download complete8c00eb12c498: Verifying Checksum8c00eb12c498: Download completeceb102cff1e0: Verifying Checksumceb102cff1e0: Download complete5c3f857c8dd5: Verifying Checksum5c3f857c8dd5: Download completec499e6d256d6: Pull complete62b0f1bf7919: Pull complete30b7b8e6b50d: Pull completef4947adccc3c: Pull complete219c07faa520: Pull complete1fdd33e2f7a9: Pull completeceb102cff1e0: Pull complete8c00eb12c498: Pull complete5c3f857c8dd5: Pull completeDigest: sha256:dd2f61c460cef13dede75048c7727c6767856055e3cbeb865a08a17d1456c42dStatus: Downloaded newer image for bitbucketpipelines/bitbucket-upload-file:0.1.4Traceback (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'

1 answer

1 accepted

0 votes
Answer accepted
ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2020

The bitbucket upload pipe is broken, please use version 0.1.1 (Reference).

/cc @Galyna Zholtkevych 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events