Skip to content

Commit

Permalink
#3 Timeout increased to 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhif committed Apr 25, 2017
1 parent 063f6f6 commit 0d66f1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/gitlabci/controller/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def list_pipelines
:headers => {"PRIVATE-TOKEN" => options[:token]},
:url => "#{options[:url]}/api/v3/projects/#{options[:id]}/pipelines/",
:verify_ssl => false,
:timeout => 5)
:timeout => 60)

pipelines = JSON.parse(response)
rescue => e
Expand Down Expand Up @@ -66,7 +66,7 @@ def get_pipeline_status(id = nil, url = nil, token = nil, pipeline = nil, output
:headers => {"PRIVATE-TOKEN" => options[:token]},
:url => "#{options[:url] || url}/api/v3/projects/#{options[:id] || id}/pipelines/#{options["pipeline"] || pipeline}",
:verify_ssl => false,
:timeout => 5)
:timeout => 60)

pipeline = JSON.parse(response)
rescue => e
Expand Down Expand Up @@ -97,7 +97,7 @@ def run_pipeline
:headers => {"PRIVATE-TOKEN" => options[:token]},
:url => "#{options[:url]}/api/v3/projects/#{options[:id]}/pipeline?ref=master",
:verify_ssl => false,
:timeout => 10)
:timeout => 60)

pipeline = JSON.parse(response)
rescue => e
Expand Down Expand Up @@ -150,7 +150,7 @@ def retry_pipeline
:headers => {"PRIVATE-TOKEN" => options[:token]},
:url => "#{options[:url]}/api/v3/projects/#{options[:id]}/pipelines/#{options["pipeline"]}/retry",
:verify_ssl => false,
:timeout => 5)
:timeout => 60)

pipeline = JSON.parse(response)
rescue => e
Expand Down Expand Up @@ -201,7 +201,7 @@ def cancel_pipeline
:headers => {"PRIVATE-TOKEN" => options[:token]},
:url => "#{options[:url]}/api/v3/projects/#{options[:id]}/pipelines/#{options["pipeline"]}/cancel",
:verify_ssl => false,
:timeout => 5)
:timeout => 60)

pipeline = JSON.parse(response)
rescue => e
Expand Down

0 comments on commit 0d66f1e

Please sign in to comment.