-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
scm_revision on Started notification #14410
Comments
@fkuep sounds more like a bug. "job.scm_revision" should work according to the docs https://docs.ansible.com/automation-controller/latest/html/userguide/notification_parameters_supported.html |
Thanks for classifing it as bug. When I enable updating scm before running, I can see the play getting the lower job_id than the scm-update. Probably the event leading to the notification is to early. I would like to post notifications to scm as build-status. |
Anything I can do to further progress? |
@fosterseth How would I approach to draw attention to this problem ? |
Wow - Thanks @dmzoneill !! |
Please confirm the following
Feature type
Enhancement to Existing Feature
Feature Summary
When using a webhook notification with a custom "start message body" the job.scm_revision field is empty.
Select the relevant components
Steps to reproduce
set:
"commit": "{{ job.scm_revision }}",
in the start message body and observe awx sending
commit: "",
in it´s webhook notification.
Current results
commit: "",
Sugested feature result
commit: "87c05830f0e045b55be00ff5e3649",
Additional information
@fosterseth
Would the feature mean that the notification would need to be delayed from pre-run to preparing playbook for the information to be available ?
https://youtu.be/RfQ_6gBHtBs?t=1963
Also - should this feature not be feasable - is there a handy postgres listen query that would give me the commit hash once it is ready ?
The text was updated successfully, but these errors were encountered: