Coder Social home page Coder Social logo

flosell / lambdacd-value-stream Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 27 KB

A library that adds upstream and downstream triggers to LambdaCD

License: Apache License 2.0

Clojure 96.28% Shell 3.72%
lambdacd continuous-delivery build-pipelines plugin

lambdacd-value-stream's Introduction

lambdacd-value-stream

A library that adds upstream and downstream triggers to LambdaCD

Status

Build Status

Clojars Project

When to use this

When you want to split your pipeline up into multiple, smaller pipelines and trigger one pipeline from another.

Usage

Initialization (version >= 0.2.0)

(let [foo-config {; ...
                  :value-stream {:pipeline-id :foo}}
      foo-config {; ...
                  :value-stream {:pipeline-id :bar}}
      foo-pipeline (lambdacd/assemble-pipeline foo-structure foo-config)
      bar-pipeline (lambdacd/assemble-pipeline bar-structure bar-config)]
    ; ...
    (value-stream/initialize-value-stream [foo-pipeline bar-pipeline]
    ; ...
    )

Initialization (version < 0.2.0)

(let [foo-pipeline (lambdacd/assemble-pipeline foo-structure foo-config)
      bar-pipeline (lambdacd/assemble-pipeline bar-structure bar-config)]
    ; ...
    (value-stream/initialize-value-stream {:foo foo-pipeline
                                           :bar bar-pipeline})
    ; ...
    )

Wait for upstream pipeline to complete

(defn wait-for-foo-pipeline [args ctx]
  (value-stream/wait-for-pipline-success :foo ctx))

Wait for trigger from upstream pipeline (version >= 0.2.0)

(defn wait-for-upstream-trigger [args ctx]
  ; you can also inline this into the pipeline-structure
  (value-stream/wait-for-upstream-trigger args ctx))

Trigger downstream pipeline (version >= 0.2.0)

(defn trigger-bar-pipeline [args ctx]
  (value-stream/trigger-downstream-pipeline :bar args ctx))

See example for a complete example.

Features

  • Wait for upstream success
  • Trigger from upstream step
  • Visualization

License

Copyright © 2016 Florian Sellmayr

Distributed under the Apache License 2.0

lambdacd-value-stream's People

Contributors

flosell avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.