Skip to content

Commit

Permalink
fix(pipelines): guard against missing info on deploy stage (#4246)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry authored Oct 11, 2017
1 parent 32608b5 commit 0e5957b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ module.exports = angular.module('spinnaker.core.pipeline.stage.deploy.details.co
const serverGroupName = context['deploy.server.groups'][context.source.region][0];
serverGroupReader.getServerGroup(context.application, context.account, context.source.region, serverGroupName)
.then(serverGroup => {
if (serverGroup.buildInfo.jenkins) {
if (_.has(serverGroup, 'buildInfo.jenkins')) {
$scope.changeConfig.buildInfo.jenkins = serverGroup.buildInfo.jenkins;
}
});
}).catch(() => {});
}
};

Expand Down

0 comments on commit 0e5957b

Please sign in to comment.