Git Product home page Git Product logo

fabric8-jenkins-workflow-steps's Introduction

Fabric8 DevOps Workflow Steps

Provides Jenkins Workflow Steps for working with Fabric8 DevOps in particular for clean integration with the Hubot chat bot and human approval

fabric8 logo

The following jenkins workflow steps are available if you add this plugin to your Jenkins:

hubot

Allows sending of a message to the hubot chat bot

hubot room: 'foo', message: 'hello world!'

If the room foo does not already exist its created on the fly

hubotProject

Allows sending of a message to the default chat room for a project build (using the fabric8.yml file to find the chat room for a project).

If no chat room is defined for a project then it uses the environment variable $FABRIC8_DEFAULT_HUBOT_ROOM

hubotProject 'hello world!'

hubotApprove

Sends a hubot message the project chat room for a project when the build is waiting for user input with the hubot commands to proceed or abort the build.

hubotApprove "Do you want to stage?"
input id: 'Proceed', message: "Staging?"

Here's an example of the hubotApprove step inside Let's Chat:

example of the approval in action with LetsChat

This goal is part of the reusable maven/CanaryReleaseStageAndApprovePromote.groovy Jenkins workflow script in the default Fabric8 DevOps library of Jenkins Workflows which can be used on any Maven based project created via the Fabric8 DevOps tooling or console.

The behaviour of this script is to:

  • perform a canary release of all maven artifacts and docker images
  • run automated Kuberentes integration tests in a brand new kubernetes environment with all the docker images and kubernetes resources (pods, replication controllers, services etc)
  • stage the canary release to a staging environment
  • ask the user to prompt if it should be promoted to a production environment
  • if successful the release is promoted to production

parameterOrDefault

Evaluates a build parameter value of the given name or returns a default value

def something = parameterOrDefault parameter: 'FOO', defaultValue: 'bar'
echo "I have a value ${something}" 

This makes it really easy in a 1 liner to define a variable for an optional build parameter in a reusable workflow script which if the build parameter is not defined then you can provide a default value.

fabric8-jenkins-workflow-steps's People

Contributors

jstrachan avatar

Watchers

mingfeng.zhang 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.