Skip to content

Commit

Permalink
let jenkins come up after auto-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bdecoste committed Apr 4, 2013
1 parent 4d76bfe commit 7203049
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rhc/commands/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
require 'resolv'
require 'rhc/git_helpers'
require 'rhc/cartridge_helpers'
require 'active_support'

module RHC::Commands
class App < Base
include ActiveSupport::JSON
summary "Commands for creating and managing applications"
description "Creates and controls an OpenShift application. To see the list of all applications use the rhc domain show command. Note that delete is not reversible and will stop your application and then remove the application and repo from the remote server. No local changes are made."
syntax "<action>"
Expand Down Expand Up @@ -384,7 +386,7 @@ def add_jenkins_app(rest_domain)
jenkins_job_url = "#{jenkins_url}job/#{name}-build/"
jenkins_build = "curl -ksS -X GET #{jenkins_job_url}api/json --user '#{jenkins_user}:#{jenkins_password}'"

successful, attempts = false, 1
successful, attempts = false, 3
while (!successful && exit_code == 157 && attempts < MAX_RETRIES)
begin
response = `#{jenkins_build}`
Expand Down

0 comments on commit 7203049

Please sign in to comment.