让.txt文件遍历他的每一行,发送每一行作为我的bat脚本的参数。
运行以下代码,他收到第一个参数,但是当第一次失败时,它不再继续运行其余的文件行。
candidate function not viable: no known conversion from 'Parent *const' to
'const Parent *&' for 1st argument int function_2(const Parent *&);
输出示例:
script
{
def project_list_file = readFile"${flow_bm_folder}\\${env.PROJECTS_LIST}"
def list = project_list_file.readLines();
for(int i = 0;i < list.size(); i++)
{
bat "${flow_bm_folder}\\Env.bat ${list[i]}"
}
}
请注意,如果我按照以下方式切换,则会打印完整列表:
18:27:55 [Windows] <MY_PATH>><MY_PATH>\<folder_path>\\Env.bat A_H_V3
18:27:55 [Windows]
18:27:55 [Windows] <MY_PATH>>command...
18:27:55 [Windows]
18:27:55 [Windows] <MY_PATH>>command...
18:27:55 [Windows]
18:27:55 [Windows] <MY_PATH>>command...
18:27:55 [Windows]
18:27:55 [Windows] <MY_PATH>>command...
18:27:55 [Windows] make: *** No targets specified and no makefile found. Stop.
[Pipeline] [Windows] }
[Pipeline] [Windows] // script
[Pipeline] [Windows] }
[Pipeline] [Windows] // node
[Pipeline] [Windows] }
18:27:55 [Windows] Failed in branch Windows
[Pipeline] // parallel
Post stage
.
.
知道我做错了什么吗?