File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -455,16 +455,19 @@ type ExecuteStageResponse struct {
455
455
type StageStatus int
456
456
457
457
const (
458
- StageStatusSuccess StageStatus = 2
459
- StageStatusFailure StageStatus = 3
460
-
461
- // StageStatusSkipped StageStatus = 5 // TODO: If SDK can handle whole skipping, this is unnecessary .
462
-
458
+ _ StageStatus = iota
459
+ // StageStatusSuccess indicates that the stage succeeded.
460
+ StageStatusSuccess
461
+ // StageStatusFailure indicates that the stage failed .
462
+ StageStatusFailure
463
463
// StageStatusExited can be used when the stage succeeded and exit the pipeline without executing the following stages.
464
- StageStatusExited StageStatus = 6
464
+ StageStatusExited
465
+
466
+ // StageStatusSkipped // TODO: If SDK can handle whole skipping, this is unnecessary.
465
467
)
466
468
467
469
// toModelEnum converts the StageStatus to the model.StageStatus.
470
+ // It returns model.StageStatus_STAGE_FAILURE if the given value is invalid.
468
471
func (o StageStatus ) toModelEnum () model.StageStatus {
469
472
switch o {
470
473
case StageStatusSuccess :
You can’t perform that action at this time.
0 commit comments