From 3b3cd1764ecc55971b05d1956cb7e231b54da714 Mon Sep 17 00:00:00 2001 From: Thorsten Scherler Date: Tue, 26 Jul 2016 11:23:16 +0200 Subject: [PATCH] [JENKINS-36903] test for things that we later use and if not present would throw an exception (#375) --- blueocean-web/src/main/js/DevelopmentFooter.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blueocean-web/src/main/js/DevelopmentFooter.jsx b/blueocean-web/src/main/js/DevelopmentFooter.jsx index 179a15a9..d07204fd 100644 --- a/blueocean-web/src/main/js/DevelopmentFooter.jsx +++ b/blueocean-web/src/main/js/DevelopmentFooter.jsx @@ -5,7 +5,8 @@ import revisionInfo from '../../../target/classes/io/jenkins/blueocean/revisionI export class DevelopmentFooter extends Component { render() { - if (!revisionInfo || !revisionInfo.name) { + // testing basic integrity + if (!revisionInfo || !revisionInfo.sha) { // TODO: At minimum we should return Jenkins version. Jenkins version is always present // in X-Hudson HTTP header. Something to be handled elsewhere during load time by // inspecting HTTP response headers