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

Bitbucket pipelines and Azure ACR runner image

Horia Naidin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 22, 2024

 Hi, we have an issue with bitbucket-pipelines and a private docker registry (azure acr).

This pipeline fails at the second step (init step runs successfully), with error message:

rpc error: code = Unknown desc = failed to pull and unpack image "private.azurecr.io/runners/azure-agent:v1": failed to resolve reference "private.azurecr.io/runners/azure-agent:v1": failed to authorize: failed to fetch oauth token: unexpected status: 401 Unauthorized

options:
docker: true

image
:
name: private.azurecr.io/runners/azure-agent:v1
username: $AZURE_USERNAME
password: $AZURE_PASSWORD

definitions:
steps:
- step: &init
name: Initialise
services: [docker]
script:
- echo "init"
- step: &build
name: Build
services: [docker]
script:
- echo "build"
pipelines:
pull-requests:
'**':
- step: { <<: *init, deployment: Preview }
- step: { <<: *build }

 

1 answer

1 accepted

1 vote
Answer accepted
Horia Naidin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 22, 2024

While debugging I found the issue: an out of date AZURE_PASSWORD

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events