Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Adding a Bamboo Job implicitly adds a Repo Checkout Task?

Edited

Hello Everyone,

 

I was adding a test job to my overall configuration for bamboo yaml specs and noticed something I didn't expect.

 

```

. . .

Hello World:
key: JOB2
tasks:
- script:
interpreter: SHELL
scripts:
- |-
echo "Hello World"
requirements:
- Computer.Name: TEST

```

 

Above is my job, that I've defined with a single script task in my bamboo-spec file on my bitbucket repository. Yet when I go to the configuration of the plan viewed as a yaml spec I see an extra task has been added?

From Yaml-Spec generated from plan:

```
. . .

Hello World:
key: JOB2
tasks:
- checkout:
force-clean-build: 'false'
- script:
interpreter: SHELL
scripts:
- echo "Hello World"
requirements:
- Computer.Name: TEST

```

 

any help would be appreciated. Thank you!

1 answer

0 votes
C I'm New Here Dec 22, 2021

This isn't the best solution but I found that you can work around this by explicitly adding the Checkout task and making it dependent on a variable that you won't define.

 

For example:

 tasks:
 - checkout:
force-clean-build: 'false'
conditions:
- variable:
exists: NOPOP
description: Checkout task

# Now define your other tasks

 

Also found this feature request:

https://jira.atlassian.com/browse/BAM-20709

Suggest an answer

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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

171 views 0 4
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