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

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

rory_toma March 31, 2020

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

0 votes
Gerhard Forster
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 14, 2020

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
AUG Leaders

Atlassian Community Events