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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.