Forums

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

How can I specify Ubuntu used for Bitbucket pipeline execution?

Bill Craun
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!
February 9, 2023 edited

I have a pipeline that was working until a couple of days ago which was traced to Bitbucket's use of 14.04 (trusty) for the execution environment. Microsoft have provided guidance that major features of the azure-cli packages have deprecated support for legacy versions of Ubuntu and that I should upgrade. Use of Azure tooling is critical to my CI/CD workflow and I am not seeing how I can specify a different Ubuntu version for pipelines to use in bitbucket-pipelines.yml. Please advise how modern versions of Ubuntu can be used in pipelines.

1 answer

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

Hello @Bill Craun ,

Thank you for reaching out to Atlassian Community! 

I see you have opened an internal ticket with us as well, so just sharing the solution here : 

In the bitbucket-pipelines.yml file you can define custom docker images by using the following syntax : 

image: <imagename>

 For Ubuntu, in this example, you could define : 

image: ubuntu:22.04

This would download the ubuntu image from DockerHub that has the tag for version 22.04. For other available tags you can check Ubuntu's official docker hub page.

Additional details on using public/private images in Bitbucket Pipelines are outlined on Use docker images as Build Environments.

Thank you, @Bill Craun !

Patrik S

Suggest an answer

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

Atlassian Community Events