
Untitled
By: a guest on
May 20th, 2012 | syntax:
None | size: 1.58 KB | hits: 16 | expires: Never
Ruote.process_definition :name => 'handle_sr' do
sequence do
request_handler :action => 'review'
cursor :break_if => '${status} == FAILED' do
check_process
check_quality
end
_if => '${status} == FAILED' do
sequence do
request_handler :action => 'reject'
notify
cancel_process
end
end
# grant sequential access to the builder
# Waits in a queue until OBS is free
get_OBS_ticket
build_packages # This copies packages in request to Trunk:Testing
# This will block until the built_Trunk:Testing
# participant is called by robogrator
# There will be a built_* participant acting as a 'sink'
listen :to => 'built_${project}'
_if '${build_status} == SUCCESS' do
sequence do
build_ks
build_image
test_image
_if '${test_success}' do
subprocess 'do_updates'
subprocess 'do_revert'
end
end
subprocess 'do_revert' # build not SUCCESSful
end
release_OBS_ticket
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
end