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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,858
Community Members
 
Community Events
176
Community Groups

PipelineでのUnicodeDecodeError

始めて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 Feb 03, 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

Atlassian Community Events