Reducing Deployment Risks via Policies in DevOps Pipelines
IBM's DevOps Insights reduces deployment risk by letting you define policies that stop the pipeline until testing conditions have been passed.
Join the DZone community and get the full member experience.Join For Free
earlier this year, ibm introduced a new service, devops insights (beta), which helps, among other things, to reduce deployment risks. policies can be defined to ensure that unit tests, functionality tests and other tests pass before new versions of applications are deployed.
the following screenshot shows the devops insights dashboard with a sample application that contains two deployable units, one microservice and one web application. for each deployable unit, icons indicate which tests have been run for which environments and whether they have been successful.
gates can be inserted into the delivery pipelines to ensure certain policies are met before the pipeline executions continue. in this screenshot, the staging gate failed because not all unit tests have passed, and this caused the pipeline to stop.
in order to leverage gates, use the tester type “devops insights gate” in the configuration of your pipeline stages and link to a policy.
with policies, you can define how many and which exact unit tests, functional verification tests, etc. need to pass.
if you want to try out this functionality, you can easily set up one of the toolchain samples which come with the devops insights service.
Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.