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

Use Docker images as build environments

This article about using a Docker image for your build leaves several open questions:

  • Where and how best do you populate the secret username and password?
  • Where will pipelines expand the source in the image?
  • What will be the current directory and user?
  • How does pipelines invoke the image, with what parameters?
  • How does pipelines get results of the build?

1 comment

  • Where and how best do you populate the secret username and password?  

This is sort of answered.  There's a suggestion to look at an environment variables article "for more information."  There's more than more information there.  It tells you exactly how to use the pipeline setup to securely set username and password.

  • What will be the current directory and user?

The same article answers the first half of this question, indirectly.  The predefined environment variables are listed there.  One of them tells the directory that will be current.  The user will be 'root'.

  • Where will pipelines expand the source in the image?

It expands into ${BITBUCKET_CLONE_DIR}, which is also the current directory from which the build commands run.

I don't think the answers to the last two questions likely matter much.

Comment

Log in or Sign up to comment
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

1,084 views 3 17
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