Language guides

Here are example bitbucket-pipelines.yml files for different languages.

 


 

On this page

 


 

   Javascript (Node.js)

See our full guide - Javascript (Node.js) with Bitbucket Pipelines.

 

   Go

bitbucket-pipelines.yml
# You can use any Docker image from Docker Hub or your own container registry
image: golang:1.7
pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - PACKAGE_PATH="${GOPATH}/src/bitbucket.org/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}"
          - mkdir -pv "${PACKAGE_PATH}"
          - tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "${PACKAGE_PATH}"
          - cd "${PACKAGE_PATH}"
          - go get -v
          - go build -v
          - go test -v

 

   Java

See our full guide - Java with Bitbucket Pipelines.

 

   Ruby

See our full guide - Ruby with Bitbucket Pipelines.

 

   Python

See our full guide - Python with Bitbucket Pipelines

 

   PHP

See our full guide - PHP with Bitbucket Pipelines

 

   Other supported languages

You can build any language that can be built on Linux by using Docker images.

Some Docker images you can use from Docker Hub to build other languages:

See also 

Remember, if you're having trouble using Bitbucket Pipelines an active community is always there to help.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport