Expand my Community achievements bar.

SOLVED

Script target - continuous delivery

Avatar

Level 2

What is the correct format to add a recipient (or operator) by script in the continuous delivery?

is it possible by instance variable? or vars ?

thanks in advance.

Nolan Chabert

1 Accepted Solution

Avatar

Correct answer by
Level 2

<delivery>

  <targets>

    <deliveryTarget>

      <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>

        <where>

          <condition expr='[@id] = <%= vars.operatorId %>'/>

        </where>

      </targetPart>

    </deliveryTarget>

  </targets>

</delivery>

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

<delivery>

  <targets>

    <deliveryTarget>

      <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>

        <where>

          <condition expr='[@id] = <%= vars.operatorId %>'/>

        </where>

      </targetPart>

    </deliveryTarget>

  </targets>

</delivery>