Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PipelineでのUnicodeDecodeError

shohei satsuma February 1, 2022

始めてBitbucketを利用させていただいております。
初歩的な質問になるかもしれませんが、お答えいただけますと幸いです。
BitbucketのコードをAWS S3に自動でアップされるようにしたいのですが、Pipelineで繋ごうとし下記の通り実行するとUnicodeDecodeErrorが発生し失敗します。
こちらはどう解消すればいいかご教示いただくことは可能でしょうか。。

◆実行ログ
===
aws s3 sync /opt/atlassian/pipelines/agent/build s3://XXX/
Traceback (most recent call last):
File "/usr/bin/aws", line 27, in <module>
sys.exit(main())
File "/usr/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 59, in main
rc = driver.main()
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 232, in main
write_exception(e, outfile=get_stderr_text_writer())
File "/usr/lib/python2.7/site-packages/awscli/utils.py", line 194, in write_exception
outfile.write(six.text_type(ex))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 29: ordinal not in range(128)
✖ Deployment failed.
===

念のため。bitbucket-pipelines.ymlも下記に記載します
====
# This is an example Starter pipeline configuration
# Use a skeleton to build, test and deploy using manual and parallel steps
# -----
# You can specify a custom docker image from Docker Hub as your build environment.

image: atlassian/default-image:2

pipelines:
default:
- step:
name: Default deployment
script:
- echo "Your deployment,build and test goes here!"
branches:
develop:
- step:
name: Development Deployment
deployment: Test
script:
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
S3_BUCKET: 'XXXX'
LOCAL_PATH: '$(pwd)'

master:
- step:
name: Production deployment
deployment: Production
script:
- echo "Your deployment to production script goes here.."
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
S3_BUCKET: 'XXX'
LOCAL_PATH: '$(pwd)'
===

1 answer

0 votes
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2022

Hi, @shohei satsuma, welcome to the community! 

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let’s focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events