mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Expose {awx,tower}_project_scm_branch variables in the environment
This commit is contained in:
parent
81a79c30cb
commit
51aed19b29
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user