diff options
author | Borge Lanes <borgel@snap.tv> | 2014-12-02 09:03:48 +0100 |
---|---|---|
committer | Borge Lanes <borgel@snap.tv> | 2014-12-02 09:03:48 +0100 |
commit | 441f908c8a28dbc231516a607d594ad104edd86c (patch) | |
tree | 1104cde1752f01189c8ea661a1a9ee89e2f982d1 | |
parent | e77d40b148fbfce599fbdd590ac777f321c6414b (diff) | |
download | tox-441f908c8a28dbc231516a607d594ad104edd86c.tar.gz |
Determine Jenkins environment as described in docs
HUDSON_URL is still checked for backward compatibility.
-rw-r--r-- | tox/_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tox/_config.py b/tox/_config.py index ceae6b9..41f02ec 100644 --- a/tox/_config.py +++ b/tox/_config.py @@ -802,7 +802,7 @@ class CommandParser(object): return ps.yield_words def getcontextname(): - if 'HUDSON_URL' in os.environ: + if any(env in os.environ for env in ['JENKINS_URL', 'HUDSON_URL']): return 'jenkins' return None |