How Do I Setup Bitbucket Pipeline with a Windows Image

Auden RovelleQuartz November 19, 2019

based on https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-create-a-docker-image-for-Bitbucket-Pipelines/qaq-p/334724

 

I am attempting to set up a Bitbucket Pipeline for a Windows image (since we are using IAR embedded workbench as our build environment - https://www.iar.com/iar-embedded-workbench/ )

 

in my bitbucket account, I have pipelines enabled

capture_002.PNG

 

I have a Docker hub account at https://hub.docker.com

 

I have installed docker on my Windows machine

 

I have created, at my local root C:\, a docker directory and created a trivial Dockerfile at  C:\docker 

Capture.PNG

 

 

I used PowerShell and built a docker image

capture_004.PNG

 

I logged into my hub.docker.com account

capture_005.PNG

 

 

I push the image to Docker hub

capture_006.PNG

 

 

I specify the image in my bitbucket-pipelines.ymlcapture_003.PNG

 

The problem is that the build gives me the following error

capture_007.PNG

 

what do I need to do so that the build for this trivial case passes? do I need to switch the  server from linux to Windows? if so, how do I do that from within the Bitbucket environment?

 

 

3 answers

1 accepted

2 votes
Answer accepted
Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 19, 2019

Hi Auden,

As described on Limitations of Bitbucket Pipelines page

For now pipelines does not support building Windows, macOS, or iOS applications (watch the linked issues to receive updates).

You can only run Linux containers, but not windows ones

Kind Regards

Lukas Kempf May 25, 2020

Is it planned to integrate this? Until when? Is there an alternative?

Like # people like this
Marcus Sonestedt May 3, 2021

Ping this question for 2021?

Update: Seems to be in the works for self-hosted runners, not Atlassian's cloud & docker based runners, according to comments on https://jira.atlassian.com/browse/BCLOUD-13452.

 

 

1 vote
Spike McLarty September 19, 2023

Oddly, the page referenced in the accepted answer, Limitations of Bitbucket Pipelines  no longer mentions that Windows is not supported (or, really, that only Linux is supported) - but AFAICT Windows is still not supported.

OK, technically Windows builds are supported... on your own infrastructure.

0 votes
Gerald Blondel May 13, 2021

Use Atlassian Bamboo.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events