0

I know that to change a parameter in a .cmd batch script, we can use: echo "##teamcity[setParameter name='paramName' value='abcdef']"

But the change takes effect only in the next build step after this has been set in the previous build step. I want to set and change a parameter within the same build step. Is it somehow possible?

Syed Waqas
  • 2,576
  • 4
  • 29
  • 36
  • What kind of step is the build step? – Matt Mar 09 '16 at 16:24
  • The value is already available (otherwise it would be impossible to set parameter using service message), so why not just use it? – cyberskunk Mar 15 '16 at 20:28
  • One reason you may wish to use it would be when you have some logic to define the parameter in your build step, and want to use that parameter in a plugin which extends the build step (e.g. using it in the upload spec in the Artifactory plugin). – testworks Aug 23 '19 at 04:13

0 Answers0