Skip to content
Snippets Groups Projects
Commit 9366cca6 authored by Tiffany Rea's avatar Tiffany Rea Committed by Sanad Liaquat
Browse files

Wait for pipeline finish before deletion

parent 3d56dc83
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -48,6 +48,12 @@ module QA
 
let(:pipeline_data_request) { Runtime::API::Request.new(api_client, "/projects/#{project.id}/pipelines/#{pipeline_id}") }
 
before do
Support::Waiter.wait_until(max_duration: 30, sleep_interval: 3) do
JSON.parse(get(pipeline_data_request.url))['status'] != 'pending'
end
end
after do
runner.remove_via_api!
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment