Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

how to make a child step ignore parent step's environment variables? #4262

OnQuickBuild ·

Hi Quickbuild Support

I have a long sequential step (the parent step) that goes to a certain agent to run builds. Due to licencing issue, in the middle of it, one child step goes to another agent to do some tasks. But the top parent step has environment variables, one of which is "PATH", which messes up the child step on the different agent.

Is there a way to ignore the inheritance without setting the environment variable of the child step?

Thank you!

  • solved #2
  • replies 1
  • views 2208
  • stars 0
robinshen ADMIN ·

There is no way to break the inheritance chain now. You will need to configure PATH env explicitly when running the child command to override inherited envs. This can be done via the "environments" property of the child step