Skip to content

Commit

Permalink
jobs-builder: strip newlines in the output of os2node.yaml.inc
Browse files Browse the repository at this point in the history
It is added a minus sign (-) in the control flow statements of os2node.yaml.inc
so that newlines are striped off. Otherwise the output will contain
newline characters which can end up messing with the generated XML
representation of the jobs.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
  • Loading branch information
wainersm committed Dec 29, 2021
1 parent 686d7f1 commit bbbb8a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jobs-builder/jobs/include/os2node.yaml.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
#
# Convert OS name to node label string.
#}
{% if os == "centos8" -%}
{%- if os == "centos8" -%}
centos8_azure
{% elif os == "fedora32" -%}
{%- elif os == "fedora32" -%}
fedora32_azure
{% elif os == "ubuntu1804" -%}
{%- elif os == "ubuntu1804" -%}
ubuntu1804_azure || ubuntu1804-azure
{% elif os == "ubuntu-20.04" -%}
{%- elif os == "ubuntu-20.04" -%}
ubuntu_20.04
{% elif os == "ubuntu-20.04-ARM" -%}
{%- elif os == "ubuntu-20.04-ARM" -%}
arm_node || arm-ubuntu-2004
{% endif %}
{%- endif %}

0 comments on commit bbbb8a7

Please sign in to comment.