Execute a flask run in Jenkins shell without timeout
If you're running flask run in a bash script, adding & to the end (flask run &) will run the task in the background, allowing the bash script to continue. I think this will let your job finish and Jenkins can scan stdout for the message indicating success.
Edit: Apparently overriding the build number export BUILD_ID=<whatever> is enough to stop Jenkins from killing the background process. I'd be wary of what you choose as <whatever>, if you choose an existing BUILD_ID, there could be side-effects.
I'm using Jenkins to run a Flask app automatically from a Git branch.
The build works well, and it starts the Flask app on my server, except that when you run flask run, the command line stays active as long as the flask app runs.
Thus, the build never ends, and it ends up as an unstable build.
How can I get the flask app to run and get a Jenkins build success if it got the the * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) message?