What configuration examples would you like to see for Bitbucket Pipelines?

xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2016

As a user trying to configure your bitbucket-pipelines.yml, what examples would like to see?

Currently we have the following examples during set up:

  • .NET Core
  • Java - Maven
  • Java - Gradle
  • Node.js
  • Ruby
  • Python
  • PHP

Please upvote the answer or submit additional ones

116 answers

58 votes
floculture-dev August 7, 2016

Obj-C / Swift

gokulrajan12 April 17, 2017

Swift 3

trusk May 29, 2017

Swift 3.1

 

Edit: Before swift 4 arrives https://github.com/apple/swift-evolution

Sebastien Poulet-Mathis June 14, 2017

swift 4

Keshava Karthik S September 8, 2017

swift 3.1

Bastian Inuk Christensen May 2, 2018

Swift 4.1

Deleted user July 26, 2018

# Swift 4.1.2

47 votes
iflavours August 5, 2016

Scala - SBT

xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2017

Scala, using this docker image. I'll add this to template selection next week.

image: bitbucketpipelines/scala-sbt:scala-2.12

pipelines:
  default:
    - step:
        script:
          - sbt test

 

40 votes
Markus Bühler August 9, 2016

c#

Muhammad Ummar May 10, 2017

So there is no way I can build a .NET 4.5 project now using pipelines?

Markus Bühler June 2, 2017

Yes (or better no :-) - it's not possible to build .NET 4.5 projects using pipeline. Based on technology behind pipeline, I fear it will never be possible until Microsoft does a hughe step. Btw: It's working with .NET Core

29 votes
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2016

Go (golang)

xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 14, 2016

We've added this example in-product for Go!

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
Aaron Kramer March 17, 2019

I dont think this works any longer, when going to go get -v it returns: 

go install: no install location for directory /opt/atlassian/pipelines/agent/build/${PACKAGE_PATH} outside GOPATH

Kaioost April 16, 2019

That's exactly the output I got. I've tried setting GOPATH and GOBIN, to no avail.

28 votes
giarom August 3, 2016

C++

chris_roames August 29, 2016

CMake - looks like there is a C++ example with `make`

Like J M G likes this
vlasovmaksim October 22, 2016

Here a link to the example with C++/CMake project:

pipeline_cpp

27 votes
Milad Rastian August 3, 2016

Elixir/Erlang

becauseimspecial August 11, 2016

Erlang/Elixir for Phoenix installs.

Mikael Sand October 20, 2016

+1

Arildo Junior February 20, 2017

Objective-C and Swift

Karthikeyan Paramasivan October 1, 2018

+1 Elixir/Phoenix

21 votes
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2016

Scala

xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2017

 

image: bitbucketpipelines/scala-sbt:scala-2.12

pipelines:
  default:
    - step:
        script:
          - sbt test

Using this docker image I created

 

 

19 votes
SimonSebright August 11, 2016

C#

17 votes
Filip Bucek August 2, 2016

C++ / Qt

hsugiuchi January 19, 2020

@xtjhin 
Hi, Joshua, 

I would really really like to have a sample for C++ with Qt5 build sample. 
The Qt Eco System is getting quite popular recently and I believe it would help bunch of developers. Actually, I have hardly found C++ Qt5 samples. I could find in Travis CI, but others were less or hard to find a simple sample. 

Thank you in advance. 

Like J M G likes this
15 votes
Victor Hugo Garcia August 9, 2016

C# basically Xamarin Projects.

14 votes
Fidel Lopez September 29, 2016

Android, please. And I need to know the location of the .apk file once it is generated when I build. Thank you.

12 votes
danysk September 8, 2016

We often use Bitbucket for writing papers or creating slides. Support for LaTeX / Beamer would be greatly appreciated by our team.

11 votes
natschev September 26, 2016

Android + option to build specific branch from Bitbucket repo

11 votes
Deleted user August 21, 2016

The full .Net stack. Now we just have .Net Core

devpartisan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 2017

What build tools are popular with .NET folks these days? MS Build is there whether you like it or not, but what about Fake or PSake? Any others?

Yaroslav Tatarenko May 9, 2017

MS Build

Niels Damkjær June 2, 2017

MS Build is the way to go :-)

11 votes
bvkuijck August 10, 2016

Obj-c / Swift

10 votes
Liastre August 8, 2016

C++ - CMake (at least for Unix gcc, MinGW gcc and Visual Studio Visual C++ Compiler)

rupole1185 NA September 16, 2016

I agree with that!

Like J M G likes this
vlasovmaksim October 22, 2016

Here a link to the example with C++/CMake project:

pipeline_cpp

9 votes
Matt Ho August 8, 2016

Go

7 votes
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2016

PHP - Laravel

Jan Mueller August 11, 2016

Why Laravel? 

6 votes
Enrico Di Marco August 10, 2016

Angular

6 votes
Florian Limburg August 7, 2016

C

6 votes
Urs Zimmermann August 6, 2016
6 votes
tmarkovich August 4, 2016

Fortran

6 votes
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2016

Rust

5 votes
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2016

Clojure

Andrew Myers May 11, 2017

+1 for Clojure/Leiningen. It's super easy to add though:

image: clojure:lein

pipelines:
  default:
    - step:
        script:
          - lein clean
          - lein test
ayushka.partohap November 8, 2019

 What is the "zip file" needed to deploy to heroku?

4 votes
pierreslamich August 29, 2016

Perl

Pavel Kuptsov February 18, 2017

Yeah! It's would be really cool!

Kuba Buczek February 24, 2017

I want Perl too

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events