Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1502 from mfalesni/sprout-jenkins
Browse files Browse the repository at this point in the history
Sprout Jenkins tweaks
  • Loading branch information
seandst committed Jan 9, 2015
2 parents 9a2fe35 + 7409cc2 commit 8f793f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fixtures/parallelizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ def __init__(self, config):
for appliance_ip in self.appliances:
self.terminal.write("- {}\n".format(appliance_ip))
self._reset_timer()
# Set the base_url for collection purposes on the first appliance
conf.runtime["env"]["base_url"] = self.appliances[0]
# Retrieve and print the template_name for Jenkins to pick up
template_name = request["appliances"][0]["template_name"]
self.terminal.write("appliance_template={}\n".format(template_name))
self.terminal.write("Parallelized Sprout setup finished.\n")

def _reset_timer(self):
if not (self.sprout_client is not None and self.sprout_pool is not None):
Expand Down
1 change: 1 addition & 0 deletions sprout/appliances/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def request_check(user, request_id):
status_changed=apply_if_not_none(appliance.status_changed, "isoformat"),
datetime_leased=apply_if_not_none(appliance.datetime_leased, "isoformat"),
leased_until=apply_if_not_none(appliance.leased_until, "isoformat"),
template_name=appliance.template.original_name,
)
for appliance
in request.appliances
Expand Down

0 comments on commit 8f793f0

Please sign in to comment.