If you need to access environment variables in saltstack, aren't there any methods to access them.
I have not used saltstack but you should the tool's documentation to understand how to access env vars. Using such provision, you should access env var rather than passing to saltstack. /Ram On Thursday, March 22, 2018 at 6:22:16 PM UTC+5:30, varun bhatnagar wrote: > > Hi, > > 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 > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/552c77bd-a334-4ec4-bd77-2c2a9d5c8c95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.