set the results_set_name to the filepath
Change-Id: I320b103a8957bcd74b1aea1e61722f9ed04e72a2
diff --git a/turbo_hipster/lib/models.py b/turbo_hipster/lib/models.py
index 2a28b45..3424e86 100644
--- a/turbo_hipster/lib/models.py
+++ b/turbo_hipster/lib/models.py
@@ -152,11 +152,14 @@
@common.task_step
def _prep_working_dir(self):
+ self.job_identifier = utils.determine_job_identifier(
+ self.job_arguments,
+ self.plugin_config['function'],
+ self.job.unique
+ )
self.job_working_dir = os.path.join(
self.global_config['jobs_working_dir'],
- utils.determine_job_identifier(self.job_arguments,
- self.plugin_config['function'],
- self.job.unique)
+ self.job_identifier
)
self.shell_output_log = os.path.join(
self.job_working_dir,
@@ -220,7 +223,7 @@
self.log.debug("Process the resulting files (upload/push)")
if 'publish_logs' in self.global_config:
- index_url = utils.push_file(self.shell_output_log,
+ index_url = utils.push_file(self.job_identifier,
self.job_working_dir,
self.global_config['publish_logs'])
self.log.debug("Index URL found at %s" % index_url)
@@ -229,3 +232,4 @@
if 'ZUUL_EXTRA_SWIFT_URL' in self.job_arguments:
# Upload to zuul's url as instructed
utils.zuul_swift_upload(self.job_working_dir, self.job_arguments)
+ self.work_data['url'] = self.job_identifier