Is there a way in Python to always execute a block of code at the end of a program (ban kill -9 ?
We have a Jenkins project that runs a python script as part of the build process. If the developer decides to interrupt the work, then there are many artifacts left that can (and can) affect future builds.
In any case, to make sure that the python script part is being cleaned up?
python jenkins
Devon finninger
source share