walter-cd / walter

Tiny deployment pipeline
http://walter-cd.net
Apache License 2.0
438 stars 39 forks source link

-f option: stop on any failure of the stage executions #30

Closed ainoya closed 10 years ago

ainoya commented 10 years ago

Default behaviors:

13:39:47  INFO geting starting to run pipeline process...
13:39:47  INFO [command] exec: echxxxo "hello, world"
13:39:47  INFO [command] output: sh: echxxxo: command not found
13:39:47 ERROR [command] err: exit status 127
13:39:47 WARNING execution is skipped: command_stage_2_group_1
13:39:47 WARNING execution is skipped: command_stage_3_group_1
13:39:47 WARNING execution is skipped: command_stage_3_group_2
13:39:47 WARNING execution is skipped: command_stage_4
13:39:47 WARNING execution is skipped: command_stage_5
13:39:47  INFO finished to run pipeline process...
13:39:47  INFO succeded to finish Plumber

Otherwise, if '-f ' option is enabled, execute subsequent stages even though stage execution fails

14:22:19  INFO running Plumber
14:22:19  INFO geting starting to run pipeline process...
14:22:19  INFO [command] exec: echxxxo "hello, world"
14:22:19  INFO [command] output: sh: echxxxo: command not found
14:22:19 ERROR [command] err: exit status 127
14:22:19  INFO [command] exec: echo "hello, world, command_stage_2_group_1"
14:22:19  INFO [command] exec: echo "hello, world, command_stage_3_group_1"
14:22:19  INFO [command] output: hello, world, command_stage_2_group_1
14:22:19  INFO [command] output: hello, world, command_stage_3_group_1
14:22:19  INFO [command] exec: echo "hello, world, command_stage_3_group_2"
14:22:19  INFO [command] output: hello, world, command_stage_3_group_2
14:22:19  INFO [command] exec: echo "hello, world" && sleep 1
14:22:19  INFO [command] output: hello, world
14:22:20  INFO [command] exec: echo "hello, world, command_stage_3_group_1"
14:22:20  INFO [command] output: hello, world, command_stage_3_group_1
14:22:20  INFO finished to run pipeline process...
14:22:20  INFO succeded to finish Plumber
takahi-i commented 10 years ago

@ainoya Thanks a lot the great work in weekend :)