I am trying to run the bat command under pipeline.yml steps.
Under bat command I need to pass the current build number ‘BUILDKITE_BUILD_NUMBER’, which I tried doing as variable interpolation, but don’t know why its value not getting passed.
Below is the yml file code, and would appreciate if you could guide me to the right direction.
To pass assign the env vars, you would need to pass with the $ char so the value is retrieved accordingly. So as the BUILDKITE_BUILD_NUMBER should be assigned to this way: