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,558,718
Community Members
 
Community Events
184
Community Groups

Getting Trouble building gradle project on Bitbucket Pipeline

Edited
Hi, I found that the build for the Spring Boot project is failing through Bitbucket Pipeline.
The error message 'gradle bootBuildImage' task indicates that `docker api call to localhost:2375/v1.24/containers/created failed with status code 403 Forbidden`
This seems to be due to the fact that when the Gradle Build Task runs, the Paketo Buildpack (paketo.io) runs together.
What should I consider in order for a normal build to proceed with runner on Cloud?
```yaml
image: atlassian/default-image:3

pipelines:
branches:
poc/*:
- step: &gradle-build
name: Gradle Build
image: openjdk:17-alpine
services:
- docker
script:
- ./gradlew bootBuildImage
```

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 18, 2023

Hello @지원 전 ,

Thank you for reaching out to Atlassian Community!

From the description and the error message you shared I suspect that the API call that Gradle is trying to do to create the docker container, is not passing the security validations that are implemented in Bitbucket Pipelines.

In order for us to have more details about the error, could you please share the docker logs of the failing build? You can find the docker logs in the UI by navigating to the pipeline that failed, and in the logs section click on docker tab and share it with us here.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events