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!
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:
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.