mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Expose {awx,tower}_job_scm_branch variables in the environment
related #8429
This commit is contained in:
parent
51aed19b29
commit
a58e37e31f
@ -799,6 +799,9 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
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.scm_branch:
|
||||
for name in ('awx', 'tower'):
|
||||
r['{}_job_scm_branch'.format(name)] = self.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