Script target - continuous delivery | Community
Skip to main content
nolanChabert-Od
Level 2
July 12, 2016
Solved

Script target - continuous delivery

  • July 12, 2016
  • 1 reply
  • 1455 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nolanChabert-Od

<delivery>

  <targets>

    <deliveryTarget>

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

        <where>

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

        </where>

      </targetPart>

    </deliveryTarget>

  </targets>

</delivery>

1 reply

nolanChabert-Od
nolanChabert-OdAuthorAccepted solution
Level 2
July 12, 2016

<delivery>

  <targets>

    <deliveryTarget>

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

        <where>

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

        </where>

      </targetPart>

    </deliveryTarget>

  </targets>

</delivery>