???? STAF ????????°?????????????
???????????? ???????[ 2014/1/2 11:17:50 ] ???????????? ??????? ?????
???? 8?????????? STAX ???
<stafcmd>
<location>'buildserver'</location>
<service>'process'</service>
<request>'start command "/root/build/build.sh" username "root" password "password"
workdir "/root/build" wait stdout /root/build/build.log'</request>
</stafcmd>
???? 8 ???????? root ??????????б????? build.sh?????????????????? build.log ?У??????????????е?????????????????????? build.sh ????Щ??·?????????????????·???????????????????? workdir ?????????? build.sh ????????????????? /root/build ???????? build.sh ???
3.4 ???????
???°????????????????????????°????????????????????????????????????????????????????????ò??????????????°????????°????????????????????? STAX ???????? 9 ?????
???? 9?????°????
<script> serverList = ['deployServer'?? 'testServer'] </script>
<iterate var = "server" in="serverList">
<testcase name = "'buildCopy'">
<if expr="server != 'deployServer'">
<stafcmd>
<location>'buildserver'</location>
<service>'fs'</service>
<request>'copy DIRECTORY /root/build/result TODIRECTORY /root/build/result
TOMACHINE %s RECURSE KEEPEMPTYDIRECTORIES' % server </request>
</stafcmd>
<else>
<stafcmd>
<location>'buildserver'</location>
<service>'fs'</service>
<request>'copy DIRECTORY /root/build/result TODIRECTORY C:/build/result
TOMACHINE %s RECURSE KEEPEMPTYDIRECTORIES' % server </request>
</stafcmd>
</else>
</if>
</testcase>
</iterate>
????9??????ж???????ж????????????????????????????????????·?????????????????????? if-else ??????????????????????????? windows ?? linux ????????????????? ?????????μ?????????????д?????????????????????????????????????????????????????? if-else ????????????????????
???????? STAX ???????? 10 ?????
???? 10?????????
<sequence>
<stafcmd>
<location>'deployServer'</location>
<service>'process'</service>
<request>'start command "C:/build/deploy.bat > deploy.log" username "Administrator"
password "password" workdir "C:/build" wait '</request>
</stafcmd>
<stafcmd>
<location>'testServer'</location>
<service>'process'</service>
<request>'start command "/root/build/runtest.sh" username "root" password "password"
workdir "/root/build" wait stdout /root/build/runtest.log'</request>
</stafcmd>
</sequence>
???? 10 ???? Windows ?? Linux ????????????????????????? Windows ?????????> deploy.log???????????????? Linux ????????? stdout ??????????????????????????????????
???????????????????°???????????????????????????????????????????????????????????????????????????д??????????STAX????? ???????????????????Щ??????????????????′????????????е?????????????????????????????????????????????????е????????????? CruiseControl ??????????????? CVS ??????????????У???????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11