Skip to content

Commit

Permalink
return execution id on pipeline execute command
Browse files Browse the repository at this point in the history
  • Loading branch information
suhrud-kumar authored Jul 19, 2020
1 parent 0803295 commit 1310ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/pipeline/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func executePipeline(cmd *cobra.Command, options *executeOptions) error {
}
}

resp, err := options.GateClient.PipelineControllerApi.InvokePipelineConfigUsingPOST1(options.GateClient.Context,
successPayload, resp, err := options.GateClient.PipelineControllerApi.InvokePipelineConfigUsingPOST1(options.GateClient.Context,
options.application,
options.name,
map[string]interface{}{"trigger": trigger})
Expand All @@ -100,7 +100,7 @@ func executePipeline(cmd *cobra.Command, options *executeOptions) error {
return fmt.Errorf("Encountered an error executing pipeline, status code: %d\n", resp.StatusCode)
}

options.Ui.Success("Pipeline execution started")
options.Ui.JsonOutput(successPayload)

return nil
}

0 comments on commit 1310ceb

Please sign in to comment.