Closed uziassantosferreira closed 7 years ago
Can you post your build config (or just the step) minus any API keys/credentials.
You may need to install the cli tools using a script before the uploader step, example
- script@1.1.3:
title: Install AWSCLI
inputs:
- content: sudo apt-get update -y && sudo apt-get install -y awscli --fix-missing
i put this step but error persist
my steps:
---
format_version: 1.3.1
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- push_branch: develop
workflow: dev
- push_branch: master
workflow: prod
- push_branch: release/*
workflow: hlg
workflows:
dev:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- script:
title: Script to accept sdk build tools 25
inputs:
- content: |-
#!/bin/bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
echo y | android update sdk --no-ui --all --filter build-tools-25.0.0 | grep 'package installed'
- install-missing-android-tools: {}
- gradle-runner:
inputs:
- gradle_task: "$GRADLE_TASK_DEV"
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- script@1.1.3:
title: Install AWSCLI
inputs:
- content: sudo apt-get update -y && sudo apt-get install -y awscli --fix-missing
- amazon-s3-uploader@1.0.1:
inputs:
- file_path: "$BITRISE_APK_PATH"
- aws_access_key: "$S3_ACCESS_KEY"
- aws_secret_key: "$S3_SECRET_KEY"
- bucket_name: bucketname
- path_in_bucket: "$S3_PATH_DEV"
- slack@2.3.0:
is_always_run: false
inputs:
- webhook_url: "$SLACK_WEB_HOOK"
- channel: ''
- message: "$SLACK_MESSAGE_SUCCESS"
- message_on_error: "$SLACK_MESSAGE_FAILURE"
- icon_url: ''
- icon_url_on_error: ''
prod:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- script:
title: Script to accept sdk build tools 25
inputs:
- content: |-
#!/bin/bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
echo y | android update sdk --no-ui --all --filter build-tools-25.0.0 | grep 'package installed'
- install-missing-android-tools: {}
- gradle-runner:
inputs:
- gradle_task: "$GRADLE_TASK_PROD"
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- amazon-s3-uploader@1.0.1:
inputs:
- file_path: "$BITRISE_APK_PATH"
- aws_access_key: "$S3_ACCESS_KEY"
- aws_secret_key: "$S3_SECRET_KEY"
- bucket_name: bucketname
- path_in_bucket: "$S3_PATH_PROD"
- slack@2.3.0:
is_always_run: false
inputs:
- webhook_url: "$SLACK_WEB_HOOK"
- channel: ''
- message: "$SLACK_MESSAGE_SUCCESS"
- message_on_error: "$SLACK_MESSAGE_FAILURE"
- icon_url: ''
- icon_url_on_error: ''
hlg:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- script:
title: Script to accept sdk build tools 25
inputs:
- content: |-
#!/bin/bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
echo y | android update sdk --no-ui --all --filter build-tools-25.0.0 | grep 'package installed'
- install-missing-android-tools: {}
- gradle-runner:
inputs:
- gradle_task: "$GRADLE_TASK_HLG"
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- amazon-s3-uploader@1.0.1:
inputs:
- file_path: "$BITRISE_APK_PATH"
- aws_access_key: "$S3_ACCESS_KEY"
- aws_secret_key: "$S3_SECRET_KEY"
- bucket_name: bucketname
- path_in_bucket: "$S3_PATH_HLG"
- slack@2.3.0:
is_always_run: false
inputs:
- webhook_url: "$SLACK_WEB_HOOK"
- channel: ''
- message: "$SLACK_MESSAGE_SUCCESS"
- message_on_error: "$SLACK_MESSAGE_FAILURE"
- icon_url: ''
- icon_url_on_error: ''
app:
envs:
- opts:
is_expand: false
GRADLE_BUILD_FILE_PATH: build.gradle
- opts:
is_expand: false
GRADLE_TASK_DEV: assembleDevRelease
- opts:
is_expand: false
GRADLEW_PATH: path
- opts:
is_expand: true
SLACK_MESSAGE_SUCCESS: "$BITRISE_APP_TITLE: Build $BITRISE_BUILD_NUMBER on $BITRISE_GIT_BRANCH"
- opts:
is_expand: true
SLACK_MESSAGE_FAILURE: "$BITRISE_APP_TITLE: Build $BITRISE_BUILD_NUMBER on $BITRISE_GIT_BRANCH"
- opts:
is_expand: true
SLACK_WEB_HOOK: slack
- opts:
is_expand: true
S3_PATH_DEV: Mobile/DEV
- opts:
is_expand: true
S3_PATH_PROD: Mobile/PROD
- opts:
is_expand: true
S3_PATH_HLG: Mobile/HLG
- opts:
is_expand: true
GRADLE_TASK_PROD: assembleProdRelease
- opts:
is_expand: true
GRADLE_TASK_HLG: assembleHlgRelease
Could you try including the property bucket_region
?
example of my personal config that works
- amazon-s3-uploader@1.0.1:
run_if: '{{getenv "AWS_SECRET_KEY" | ne ""}}'
inputs:
- file_path: "$BITRISE_APK_PATH"
- aws_access_key: "$AWS_ACCESS_KEY"
- aws_secret_key: "$AWS_SECRET_KEY"
- bucket_name: bitrise-builds
- bucket_region: eu-west-1
- path_in_bucket: "${BITRISE_BUILD_SLUG}/${BITRISE_BUILD_NUMBER}"
thanks man, it's because my bucket name is from brazil.
i try to upload file but always receive this error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))