始めて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)'
===