Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

BitBucket Pipelines Gradle build for Android - failed

Deleted user 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 @[deleted], 

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

Deleted user 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
atlassian, state of devex 2025, developer experience, devex report, developer productivity, ai in software development, engineering challenges, team collaboration, internal developer platform, time management, developer survey, space framework

Atlassian State of Developer Experience Report 2025

AI is reshaping the dev experience, with faster builds but adding more friction. See what 3,500 developers and managers say about productivity, tools, and team alignment in Atlassian’s State of Developer Experience report 2025.

Explore the report
AUG Leaders

Atlassian Community Events