how to write a batch script to read the content of an xml file which is available in some remote location and based on its value trigger the build



I have an XML file called test.xml which is available @ \mymachine\test. The content looks like below.



`<root><node1 component="component1" status="ToBeInstalled" />
<node2 component="component2" status="Installed" />
<node3 component="component3" status="ToBeInstalled" /></root>`


Now I want to write a batch script which will read this test.xml from the path \mymachine\test and trigger a build, if for any component(component1,component2,component3) the status is "ToBeInstalled". I will use "Script Trigger" trigger type to achieve this. But can you please help in writing a batch script ?


No comments:

Post a Comment