-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need an option to start with clean new Env every build #10
Comments
This would be a nice feature. At the very least, I think that we would need a setting that determines whether or not the workspace is cleaned up after the build; one that defaults to True. As I see it, we can go about the actual cleanup in a couple of ways.
2 I think can be ruled out right away; this project has already had to create more than enough steps and I am reluctant to add more. 1 would be the cleanest, but the approach of 3 would ensure idempotency, which is more in line with good CI practices. Do you have a preference either way? Or do you see a different approach to this problem other than the ones I outlined? |
i would keep it simple , add a flag , and if exist remove the virtualenv if it exist before the script starts |
Would love this too, but what's the Jenkins Pipeline equivalent of the workspace cleanup plugin? |
|
I found this plugin thinking its main utility was to clean up pipelines using Scanning issues I found this one which seems pretty critical for adoption. It's been a while, but I wanted to check.. are you (@cstarner, @cjw296, @tal5ab) all still using this plugin for managing venvs on Jenkins projects, and if so, what are you currently doing to force a clean slate and recreate the venv when you need to? My initial tests with this plugin have taught me that it does not actually behave as I described above. The docs make it clear that the string arg to When I correct this and pass it the path to a python interpreter installed by pyenv, e.g.
I see from this plugin's output that it is using
None of this is very useful for me, as I really just wanted to replace this pattern:
with something like:
I appreciate that this plugin must be useful to others, or it wouldn't exist, so I'm just curious if those still actively using this could identify their use case, and/or provide some feedback on how/whether I can achieve my simple desire with this plugin. Perhaps I should just functionalize |
Right now i am forced to uninstall or use --upgrade --force-reinstall to get my latest build installed for testings
Will be nice to have an option that starts a new env every build
The text was updated successfully, but these errors were encountered: