Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Fixing bug where multi-state pipeline status was showing up incorrectly #430

Merged
merged 4 commits into from
Mar 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/commands/deployment/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,12 @@ export const printDeployments = (
if (deployment.dockerToHldRelease) {
dockerToHldId = deployment.dockerToHldRelease.id;
dockerToHldStatus = getStatus(deployment.dockerToHldRelease.status);
} else if (deployment.dockerToHldReleaseStage) {
} else if (
deployment.dockerToHldReleaseStage &&
deployment.srcToDockerBuild
) {
dockerToHldId = deployment.dockerToHldReleaseStage.id;
dockerToHldStatus = getStatus(
deployment.dockerToHldReleaseStage.status
);
dockerToHldStatus = getStatus(deployment.srcToDockerBuild.result);
}
row.push(dockerToHldId);

Expand Down