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

BitBucket Pipelines Gradle build for Android - failed

Miłosz Skalski May 16, 2017

My settings:

image: uber/android-build-environment:latest

pipelines:
  default:
    - step:
        script:
          - mkdir "${ANDROID_HOME}/licenses" || true
          - echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
          - bash ./gradlew build crashlyticsUploadDistributionRelease

FAILURE: Build failed with an exception.
* Where:
Build file '/opt/atlassian/pipelines/agent/build/build.gradle' line: 52
* What went wrong:
A problem occurred evaluating root project 'build'.
> For input string: ""

 

What could be the cause of the error. Looks like that is something wrong on server.

1 answer

0 votes
SebC
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2017

Hey @Miłosz Skalski

Everything looks correct, the only thing I'm not sure about is how you invoke the gradle wrapper; if you turn that last line into

bash -c "./gradlew build crashlyticsUploadDistributionRelease"

 does that improve it? I'm thinking that the arguments "build" and "crashlyticsUploadDistributionRelease" are going to bash, not to gradlew

 

-Seb

Miłosz Skalski November 9, 2017

Hey @SebC

The problem is not related with:  crashlyticsUploadDistributionRelease.

Problem occurs related with don't installed git on image. Always when I commit something I counts commits.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events