Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ruote.process_definition 'handle_sr' do
- sequence do
- request_handler :action => 'review'
- cursor :break_if => '${build_status} != SUCCESS' do
- check_process
- check_quality
- end
- sequence :if => '${build_status} != SUCCESS' do
- request_handler :action => 'reject'
- notify
- cancel_process # process terminates
- end
- with_OBS_ticket do
- build_packages
- listen :to => 'built_${project}'
- build :if => '${build_status} == SUCCESS'
- do_revert :if => '${build_status} != SUCCESS'
- end
- end
- define 'build' do
- sequence do
- build_ks
- build_image
- test_image
- do_updates :if => '${build_status} == SUCCESS'
- end
- end
- define 'do_updates' do
- sequence do
- iterator :on_field => 'packages', :to_field => 'package' do
- sequence do
- get_changelog
- concurrence do
- bz
- swpro
- revs_update
- end
- end
- end
- request_handler :action => 'accept'
- notify :msg => 'Promoted pkg:${package} tested successfully in Trunk'
- end
- end
- define 'do_revert' do
- sequence do
- revert
- listen :to => 'built_${project}'
- end
- end
- define 'with_OBS_ticket' do
- sequence do
- get_OBS_ticket
- apply
- release_OBS_ticket
- end
- end
- end
Add Comment
Please, Sign In to add comment