mibexsoftware / bamboo-plan-dsl-plugin

Configuration as code with a Groovy-based DSL or YAML for Atlassian Bamboo.
https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.plandsl/
Other
40 stars 16 forks source link

Job Enabled flag not respected when creating new plan. #46

Closed mayani closed 7 years ago

mayani commented 7 years ago

Bug

Add On Verison

1.8.2

Sample Input

project:
  key: DSLT
  name: DSLT
  plans:
    - key: BNT47
      name: Build & Test
      stages:
        - name: Source Checkout
          jobs:
            - key: DIST
              name: Source checkout and distribution
              description: Create the full distribution tarball
              enabled: false
              tasks:
                - !script
                  description: Create source tarballs
                  inlineScript:
                    interpreter: !scriptInterpreter LEGACY_SH_BAT
                    scriptBody: "echo A"
              miscellaneous:
                cleanWorkingDirectoryAfterEachBuild: true

Description

A job's enabled flag is not considered when plan consisting of the job des not exist.

For above example, when Plan BNT47 does not exist, and the seed task is run, the job DIST has enabled flag set to true. Job is disabled if the seed task is re-run.

mrueegg commented 7 years ago

I can confirm this bug. Will be fixed with the next release.

mayani commented 7 years ago

When is the next release planned release?

mrueegg commented 7 years ago

Fixed with the just released 1.9.0. Thanks for bringing this up!