summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorge Lanes <borgel@snap.tv>2014-12-02 09:03:48 +0100
committerBorge Lanes <borgel@snap.tv>2014-12-02 09:03:48 +0100
commit441f908c8a28dbc231516a607d594ad104edd86c (patch)
tree1104cde1752f01189c8ea661a1a9ee89e2f982d1
parente77d40b148fbfce599fbdd590ac777f321c6414b (diff)
downloadtox-441f908c8a28dbc231516a607d594ad104edd86c.tar.gz
Determine Jenkins environment as described in docs
HUDSON_URL is still checked for backward compatibility.
-rw-r--r--tox/_config.py2
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