Skip to content

Commit

Permalink
+ onError commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Komrakov committed Sep 14, 2015
1 parent ec9a268 commit 7594557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ func RunCommands(deploy map[string]mongo.DeployScenario, client *github.Client,
error := ""
for _, command := range config.Commands {
for commandType, actionStr := range command {
error = ""
if has_error == true {
if has_error == true && error != "" {
continue
}
error = ""
if commandType == "status" {
out, err := SetGitStatus(client, commit_credentials.Login, commit_credentials.Name, commit_credentials.SHA, actionStr)
if err != nil {
Expand Down

0 comments on commit 7594557

Please sign in to comment.