kontinuous icon indicating copy to clipboard operation
kontinuous copied to clipboard

Branching strategy

Open darkcrux opened this issue 8 years ago • 1 comments

Following the jenkinsfile example, we need to define a way to handle branches, after a long discussion/argument over the same solution, @madziefe and I came up with something like this:

...
stages:
  - name: Build Image
    type: docker_build
  - name: Run Tests
    type: command
    params:
      ...
  - name: Publish image
    type: docker_publish
  - name: handle branches
    type: multi_branch
    params:
      branches:
        staging:
          - type: command
            params: ...
          - type: command
            params: ...
        master:
           ...
        default**:
           ... 

So far, we think this is a flexible way of handling branches. basically when a build is created, the multi-branch part will get parsed and the actual list of stages will be added to pipeline. the default** means it's the behaviour if no branch is matched.

darkcrux avatar Jun 17 '16 07:06 darkcrux

the new pipeline format will have something similar too (after the api refactor).

darkcrux avatar Jun 17 '16 07:06 darkcrux