View on GitHub

testFlask-Jenkins

Sample Jenkins Pipeline for a Flask Python Application on Openshift

testFlask-Jenkins

Sample Jenkins Pipeline for a Flask Python Application
Application will show how we can use Jenkins to deploy/test a flask application running on openshift, the Application being used is testFlask
Environment variables used in Commands have samples in the sample_env file.
So this example assumes a pipeline scenario where there is a running production application represented by our Production Project ‘NAMESPACE_PROD’ and at build time we deploy the same exact infrastructure in our devlopment project ‘NAMESPACE_DEV’ and test, when all satisfied we promote our dev image to production which is automatically deployed based on a trigger on the imagestream.

prerequisites

Steps to Run

Use PodTemplates and Volumes for Pipeline

Create PodTemplates