-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Allow a different install_command for (non-)Jenkins environment #1103
Comments
Hi @adamantike, I doubt that changing the scope of About the whitelisting: you do not have to whitelist whatever you use as install command - that check only happens for Also just for reference there is also a discussion around the future of |
Thanks for your response @obestwalter! I completely agree with preferring In my particular scenario, I could simply fix my issue by using environment variable substitution:
And setting the However, the issue could still be valid, as many |
I think this Jenkins section is a bit of a dinosaur anyway - IMO it should be more generic to accommodate other CI systems that might need settings different from local settings. To also get that onto a testenv level it might be worth thinking along the lines of doing things differently depending on the existence/setting of an env var, but this is just a vague thought for now. |
I think this could be nicely done by having a plugin to configure this. The plugins in Jenkins can be different than locally. Maybe use the proxied by default locally, and then without remote? |
Hi!
This is intended as a feature request, unless there's something I'm missing, and is possible to do at the moment.
Currently, our environments need a local script that calls
pip
in our behalf, but checking ifdevpi
is running locally, and adding the correspondingpip
options if that's the case. Asdevpi
is optional in our DEV environments, it can't be always configured. Let's call this scriptproxied-pip.sh
.In Jenkins, however,
devpi
is not used and everything is already configured, so runningpython -m pip install ...
is enough to install project dependencies.At the moment, the solution we are using is adding another script to the project repository:
However, this needs to be replicated in each repository, or added to Jenkins, something we wouldn't like to do; we think there should be a way to simplify this configuration within Tox.
The main issue is that the
install_command
is set at the testenv level, instead of being a global setting, so we can't use something like:If that could be done, I think that would be the simplest solution, and would allow people to define global
install_command
settings, both for Jenkins and non-Jenkins environments.Of course, we should also consider what happens with the
whitelist_externals
option. Should that be configured generally as...?Opinions and/or suggestions are welcome!
I have the time to work on this, if it's accepted. Of course, I'll need help to reply the previous questions.
The text was updated successfully, but these errors were encountered: