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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Not able to download artifactory-maven pipe

Hi,

Not sure if anyone else is having the same issue. We have a pipeline that uploads maven artifacts into our JFrog artifactory using JFrogDev/artifactory-maven:0.3.3 pipe. Today all of our pipeline builds failed due to an error:

docker: Error response from daemon: Get https://jfrog-int-docker-open-docker.bintray.io/v2/artifactory-maven/manifests/0.3.3: unauthorized: Unauthorized.

Even the pipeline runs that were successful before fail now if  I manually trigger them again. 

The pipeline config is simple:

image: maven:3.3.9

clone:
enabled: true
depth: full

pipelines:
default:
- step:
caches:
- maven
script:
- pipe: JfrogDev/artifactory-maven:0.3.3
variables:
ARTIFACTORY_URL: 'xxxxxx'
ARTIFACTORY_USER: 'xxxxxx'
ARTIFACTORY_PASSWORD: 'xxxxxx'
MAVEN_SNAPSHOT_REPO: 'libs-snapshot'
MAVEN_RELEASE_REPO: 'libs-release'
MAVEN_COMMAND: 'clean test install'

 

Not sure if it is a problem of bitbucket or jfrog, but all the builds (and hence releases) are blocked at the moment, so any help would be very much appreciated.

 

Thanks

Xinchao

1 answer

1 accepted

1 vote
Answer accepted

Hey there , We had a similar issue and were able to solve it by adding 

 

services:

           - docker 

to our build steps in our bitbucket-pipeline.yml

 

for you it could be somethign like 

 

image: maven:3.3.9

clone:
enabled: true
depth: full

pipelines:
default:
- step:
caches:
- maven
script:
- pipe: JfrogDev/artifactory-maven:0.3.3
variables:
ARTIFACTORY_URL: 'xxxxxx'
ARTIFACTORY_USER: 'xxxxxx'
ARTIFACTORY_PASSWORD: 'xxxxxx'
MAVEN_SNAPSHOT_REPO: 'libs-snapshot'
MAVEN_RELEASE_REPO: 'libs-release'
MAVEN_COMMAND: 'clean test install'
services:
- docker

I hope this helps :) 

Thanks! I've tried it and it indeed works. 

BTW after that I have kicked off a few previously failed pipeline runs again (against the original commits) just to double check if it is the adding of the docker service that made the difference. The weird thing is that now all of them are running fine. 

Yesterday I've indeed raised a ticket for JFrog too after talking to the Bitbucket support. So JFrog might have fixed something from their side as well, but they haven't replied my email so I cant be sure.

Do you know why adding the docker service fixes the issue? I am leaving the change in my config as it looks promising. But still good know the rationale behind it.

Yes that is correct. the reason is the docker image is then cached and never has to go out again and therefore a docker login is not required.

 

EDIT : Rethinking this the reason is there is a docker login that is logged in with that token. So you wouldn't require another docker login. So all subsequent builds are logged in. This is an assumption and it's based on how they do a pull for the image and at what level i,e which docker image it is actually pulled in

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

455 views 4 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you