balanced-cookbooks / balanced-ci

Internal configuration for the Jekins CI environment
4 stars 1 forks source link

First pass on a more programmable pipeline. #18

Closed coderanger closed 10 years ago

coderanger commented 10 years ago

What this allows:

balanced_ci_pipeline 'foo' do
  pipeline %w{test build custom}

  # Just overriding this one attribute from the test job, others are left as the defaults
  job 'test' do
    command 'asdf'
  end

  # build job is entirely the default one

  job 'custom' do
    command 'qwer'
    inherit 'foo-test'
    # New job from scratch here
  end
end
coderanger commented 10 years ago

Ping @mjallday @bninja @mahmoudimus

coderanger commented 10 years ago

Refs #6

mahmoudimus commented 10 years ago

This looks good2me. However, the word inherit is weird to me, wouldn't it be better if we encouraged mixin? Composability over inheritance everytime for maximum reuse

mjallday commented 10 years ago

inherit is for inheriting the build artifact from a previous job i think - https://github.com/balanced-cookbooks/balanced-ci/pull/18/files#diff-24ee50f2d597cd8338daa962004c13b8R32