Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Need help converting .gitlab-ci.yml to bamboo yaml

I'm in the process of setting up bamboo, and I need to convert my .gitlab-ci.yml to bamboo yaml spec. Here is a simple one I'm starting with. If anyone has some suggestions, that would be great. Thanks

 

image: server:5000/build-centos76

.rpm: &rpm
- BRANCH_VERSION=${BRANCH_VERSION} BRANCH_NAME=${BRANCH_NAME} PARABUILD_CHANGE_LIST_NUMBER=$(cat .checkin-time) make -f Makefile.ops aws

cache: &global_cache
key: ${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
paths:
- rpm/RPMS/x86_64/*
- .checkin-time
policy: pull

before_script:
- source .${CI_COMMIT_REF_NAME}.env || source .default.env

variables:
DOCKER_DRIVER: overlay2

stages:
- ci
- rpm

build:
stage: ci
script:
- rm -rf rpm .checkin-time
- /opt/bin/checkin-time > .checkin-time
- BRANCH_VERSION=${BRANCH_VERSION} BRANCH_NAME=${BRANCH_NAME} PARABUILD_CHANGE_LIST_NUMBER=$(cat .checkin-time) make -f Makefile.ops install
cache:
<<: *global_cache
policy: pull-push

overloon-rpm:
stage: rpm
only:
- release
script:
- *rpm

manual-rpm:
stage: rpm
when: manual
except:
- Main
- master
- /^SPRINT.*$/
- release
script:
- *rpm

shellcheck:
stage: ci
script:
- make -f Makefile.ops shellcheck
cache: {}

1 answer

Hi @rory_toma,

I fear that for perfoming a complete conversion from your .gitlab-ci.yml to Bamboo YAML Specs, you'd need to be pretty much familiar on both, GitLab pipeline and Bamboo YAML Specs.

As of a ticket on the same matter that you opened with us, the Bamboo support team, we already answered a couple of more detailed questions and tried to give insights to e.g. Bamboo's Git branch handling and compared it with the Bamboo plan branche feature, we discussed how Git repository caching is handled within Bamboo, artifact creation and sharing in brief and notifications, use of triggers in Bamboo, Docker Runner as well as type and purpose of Bamboo agents.

Per the analysis done there, probably Bamboo Java Specs would be more suited for fulfilling the same GitLab pipeline tasks within Bamboo using "configuring as code".

By far the best reference and a great resource for these kind of translations from YML or any other CI/CD flow description into either Bamboo Java or YAML Specs, represents the following KB, our Bamboo Specs Tutorial.

https://docs.atlassian.com/bamboo-specs-docs/7.0.2/specs.html?java#introduction

Feel free to add further detailed Bamboo Java or YAML Specs questions. We'll be happy to answer those. Please try to answer in this same thread to avoid multiple separated answers, also for the sake of being useful to other Bamboo users with this or a similar concern.

Thanks and cheers,
Gerhard

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

477 views 5 7
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