I am trying to use SaltStack with Jenkins and I have installed and configured SaltStack plugin for the same. I want to pass BUILD_ID environment variable as a pillar during the build and in-order to achieve that I have passed this in the Arguments - "pillar={"build_id": '{{ BUILD_ID }}' }" but in the output the whole string (i.e. BUILD_ID) gets printed.
This is how my SLS file looks like:
Info message:
module.run:
- name: test.echo
- text: "{{ pillar['build_id'] }}"
Any idea how can this be achieved?
BR,
Varun