Bitbucket Pipelines FAQ

On this page

Frequently asked questions for Bitbucket Pipelines.

See also:

How much does Bitbucket Pipelines cost?

For details on pricing, see https://bitbucket.org/product/pricing/upcoming.

Is there a limit to how much I can use Pipelines?

See the limitations of Pipelines.

What is a build minute?

Build minutes are minutes executing a pipeline on a runner, excluding time acquiring a runner. In other words, they're the minutes when your pipeline status is "In progress".

How can I check my usage for this month?

You can check your team or account's minutes usage for the month in Avatar > Bitbucket settings > Plan details.

How do I share build artifacts?

You can publish artifacts to something as simple as an AWS S3 bucket or more powerful like an artifact repository. Have a look at some of these examples.

I've already added my credentials as an environment variable on another repository. Can I reuse that?

No, your credentials are shared with the Pipelines only for the repository it's connected to and can't be used in other repositories.

How can I update the list of known hosts for SSH/SCP?

The default Docker image comes with only two known hosts: github.com and bitbucket.org. To connect via a tool that does host verification, you need to update the list of known hosts to include the fingerprint of the host that you want to connect to.

To update the list, you need to add a command in your bitbucket-pipelines.yml file. The command must be added before the first command that tries to connect to the new host.

Put the following into your bitbucket-pipelines.yml file, substituting:

  • {HOST} with the fully qualified name of the host 
  • {FINGERPRINT} with the fingerprint of the new host
echo "{HOST} ssh-rsa {FINGERPRINT}" >> /root/.ssh/known_hosts

 

An example for bitbucket.org would look like this:

echo "bitbucket.org,104.192.143.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==" >> /root/.ssh/known_hosts

For more information:

Why don't I see any pipelines?

A list of pipelines displays all builds triggered by commits, no matter if they're successful, pending, in progress, or failed. An initial commit of your bitbucket-pipelines.yml file can trigger the first build, so if you don't see any entries in the pipelines table, you might want to check a couple of things.

  • First of all, each branch needs a valid bitbucket-pipelines.yml file. 
  • If the branch that you want to build already has the bitbucket-pipelines.yml file and you still don't see any pipelines in the list, you might want to add a configuration pipeline that will match your branch. You can do it in two ways:
    • add a branch-specific pipeline that matches the name of the branch that you want to build
      or
    • add a default pipeline that will have configuration for all branches, unless specified otherwise

For more information, see Configure bitbucket-pipelines.yml.

Can I whitelist IP address ranges to grant Bitbucket Pipelines access to my firewall?

Yes. See What are the Bitbucket Cloud IP addresses for the public IP addresses. Note that Bitbucket Pipelines is a shared service and the same IP addresses are used by builds configured by all our customers.

Can I skip builds?

Bitbucket Pipelines supports skipping builds.
If you don't want to run a build, for example you want to save build minutes, you can include [skip ci] or [ci skip] anywhere in your commit message of the HEAD commit. Any commits that include [skip ci] or [ci skip] in the message are ignored by Pipelines.

Why doesn't $? get the expected exit code from the previously run command?

Pipelines executes the printf command before every command in a script section of the bitbucket-pipelines.yml file in order to print those commands to the logs. This means, for example, that:

script: 
  - mvn clean build

actually behaves like this:

script: 
  - printf "+ mvn clean build\n"
  - mvn clean build

See this Atlassian Community question for more details.

How can I give you feedback?

Use the Give feedback! button on Bitbucket or Pipeline pages. Note that we are unable to respond to this feedback, but we do read it!

  For feature requests, raise an issue on our issue tracker.

  For technical support, raise a ticket with our technical support team.

 


 

 

Last modified on Aug 2, 2017

Was this helpful?

Yes
No
Provide feedback about this article

Not finding the help you need?

Ask the community

Powered by Confluence and Scroll Viewport.