如何使用多个参数调用VSTS任务两次 [英] How can I invoke a VSTS Task Twice with multiple arguments

查看:95
本文介绍了如何使用多个参数调用VSTS任务两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个变量(MyDUMMYVariable),它有两个以逗号分隔的值。即TRUE,FALSE

I have a variable(MyDUMMYVariable) which has 2 values comma separated. i.e. TRUE, FALSE

我还有一个VSTS Powershell任务,它将接受这个变量值并在控制台中打印。

I also have a VSTS Powershell Task which will accept this variable value and print it in console.

我怎样才能获得相同的PS脚本使用这些多个值执行两次?

How can I get the same PS script executed twice with these multiple values ?

输出: 

MyDUMMYVariable:TRUE

MyDUMMYVariable: TRUE

MyDUMMYVariable:FALSE

MyDUMMYVariable: FALSE

我不想在PS中使用foreach ...我想让任务执行两次。这是因为我需要在需要执行的PS脚本之后执行其他任务。即对于True值,将执行多个任务....然后为FALSE倍数 将执行
值。

I dont want a foreach inside the PS...I want to make the task execute twice. This is because I have other tasks to be executed after the PS script that needs to be executed. i.e. For True value multiple tasks will be performed ....then for FALSE multiple  values will be performed.

推荐答案

任何人都可以告诉我如何实现这一目标?任何建议。
Can any one please let me know how can i achieve this ? Any suggestions.


这篇关于如何使用多个参数调用VSTS任务两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆