Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the SCM Branch name in the playbook environment #8433

Merged
merged 2 commits into from
Oct 23, 2020
Merged

Conversation

Malizor
Copy link
Contributor

@Malizor Malizor commented Oct 21, 2020

SUMMARY

Expose more job setting variables in the playbook environment.

related #8429

A playbook wanting to know the branch or tag name it is deployed from has currently no way to do so.

With this change, any configured default project SCM branch is exposed as {awx,tower}_project_scm_branch.
If the SCM Branch is overwritten in the job, the related value is exposed as {awx,tower}_job_scm_branch.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • API
AWX VERSION
awx: 15.0.1

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit d550487 into ansible:devel Oct 23, 2020
@DE110283
Copy link

In which Tower version this will be available? Just tested in version 3.8.3 and it is still missing... (tower_job_scm_branch and tower_project_scm_branch not available in job run).

@jasonk876
Copy link

Is this available? Believe this would fix an issue that we are having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants