[JENKINS-36903] test for things that we later use and if not present would throw an exception (#375)

This commit is contained in:
Thorsten Scherler 2016-07-26 11:23:16 +02:00 committed by GitHub
parent 64f4ce5ea6
commit 3b3cd1764e
1 changed files with 2 additions and 1 deletions

View File

@ -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