Browse Source

Streamline telegram notification

remotes/origin/master
Sean Johnson 2 years ago
parent
commit
27dc8edd82
  1. 10
      saltbox/orchestrator/templates/orch_update_fileserver.j2

10
saltbox/orchestrator/templates/orch_update_fileserver.j2

@ -1,4 +1,3 @@
{{ "{% set privkey_path = " ~ "'{}'".format(salt.pillar.get("saltbox:master:pillar:git_pillar_privkey")) ~ " %}" }}
{% raw %}
---
{% set telegram = salt.pillar.get("telegram") %}
@ -88,10 +87,7 @@ telegram notification:
- tag: "notify/telegram"
- data:
message: |
Fileserver update completed! Triggered by commit `{{ last_commit_sha }}` by `{{ committer }}` on `{{ project_trigger }}`.
Built via pipeline `{{ build_pipeline_name }}`, job `{{ build_job_name }}`.
https://concourse.dev.maio.me/teams/main/pipelines/{{ build_pipeline_name }}/jobs/{{ build_job_name }}/
---
Commit {{ last_commit_sha }} by {{ committer }}:
{{ commit_message }}
Fileserver updated! Triggered by `{{ committer }}` on `{{ project_trigger }}`.
-> https://concourse.dev.maio.me/teams/main/pipelines/{{ build_pipeline_name }}/jobs/{{ build_job_name }}/
* ({{ last_commit_sha }}) {{ commit_message }}
{% endraw %}

Loading…
Cancel
Save