[ci/docsLink] hide link when 200 says "There aren't any differences!" (#90079)
Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
parent
240a7c3f02
commit
531194baba
|
@ -300,7 +300,12 @@ def getDocsChangesLink() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// httpRequest throws on status codes >400 and failures
|
// httpRequest throws on status codes >400 and failures
|
||||||
httpRequest([ method: "GET", url: url ])
|
def resp = httpRequest([ method: "GET", url: url ])
|
||||||
|
|
||||||
|
if (resp.contains("There aren't any differences!")) {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
return "* [Documentation Changes](${url})"
|
return "* [Documentation Changes](${url})"
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
print "Failed to reach ${url}"
|
print "Failed to reach ${url}"
|
||||||
|
|
Loading…
Reference in a new issue