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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,892
Community Members
 
Community Events
184
Community Groups

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

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

Atlassian Community Events