mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Expose {awx,tower}_project_scm_branch variables in the environment
This commit is contained in:
@@ -798,6 +798,7 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
if self.project:
|
||||
for name in ('awx', 'tower'):
|
||||
r['{}_project_revision'.format(name)] = self.project.scm_revision
|
||||
r['{}_project_scm_branch'.format(name)] = self.project.scm_branch
|
||||
if self.job_template:
|
||||
for name in ('awx', 'tower'):
|
||||
r['{}_job_template_id'.format(name)] = self.job_template.pk
|
||||
|
||||
Reference in New Issue
Block a user