Skip to content

Set Parameter

egoroff edited this page Jun 22, 2013 · 4 revisions

Setting build parameter

Introduction

By using dedicated service message in your build script, you can dynamically update some build parameters right from a build step, so that following build steps will run with modified set of build parameters.

Details

When specifying a build parameter's name, mind the prefix:

  • system for system properties.
  • env for environment variables.
  • no prefix for configuration parameter.

Read more about build parameters and their prefixes

The changed build parameters will also be available in dependent builds as %dep.*% properties.

Sets build parameter "n1"

    <SetParameter Name="n1" Value="value" />

Sets build parameter "n1" full example (with all optional attributes)

    <SetParameter
        IsAddTimestamp="true"
        FlowId="1"
        Name="n1"
    	Value="v1"
    />

Sets environment variable VAR1

    <SetParameter Name="env.VAR1" Value="value" />

Sets system property prop1

    <SetParameter Name="system.prop1" Value="value" />
Clone this wiki locally