Provides Jenkins Workflow Steps for working with Fabric8 DevOps in particular for clean integration with the Hubot chat bot and human approval
The following jenkins workflow steps are available if you add this plugin to your Jenkins:
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
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!'
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:
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