citadel.nodes.wrap module

class citadel.nodes.wrap.Wrap(yml, path)[source]
Synopsis:Wrap command to generate valid YAML syntax.
Requirements:None
Platform:Any

Usage

1
2
3
4
5
6
7
8
build:
  preproduction:
    branch: master
    wrap:
      - maven:
          lifecycle: clean install
      - maven:
          lifecycle: verify

This is mostly caused due to implementation details. The Yaml parser isn’t able to properly detect and handle duplicate keys (and it shouldn’t since it would otherwise break the specification and confuse users). This is often the situation when using the branch module.

To work around that syntatic quirk, the wrap module should be used to allow multiple invokations of the same module within.

Warning

Incorrect example below!

1
2
3
4
5
6
7
build:
  preproduction:
    branch: master
    - maven:
        lifecycle: clean install
    - maven:
        lifecycle: verify