diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-29 08:30:26 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-29 08:30:26 -0400 |
commit | 08fbf4359d717375833f6c20cf6a334080235b66 (patch) | |
tree | f61bf4905fe58f7e7819327b71f3a31de0802d3c /coverage/html.py | |
parent | df2fc59883817747fd03ea3cd1897d4fb5b21b07 (diff) | |
download | python-coveragepy-08fbf4359d717375833f6c20cf6a334080235b66.tar.gz |
Accommodate strange ShiningPanda logic if we are running under Jenkins. #404
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/html.py b/coverage/html.py index 8c306c6..de18cef 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -381,6 +381,13 @@ class HtmlStatus(object): with open(status_file, "w") as fout: json.dump(status, fout) + # Older versions of ShiningPanda look for the old name, status.dat. + # Accomodate them if we are running under Jenkins. + # https://issues.jenkins-ci.org/browse/JENKINS-28428 + if "JENKINS_URL" in os.environ: + with open(os.path.join(directory, "status.dat"), "w") as dat: + dat.write("https://issues.jenkins-ci.org/browse/JENKINS-28428\n") + def settings_hash(self): """Get the hash of the coverage.py settings.""" return self.settings |