开发者

Getting the list of files changed from a commit in perforce

Is there a way, in Hudson, of getting the list of files from a p4 change list and passing it to an ant build s开发者_如何学运维cript ?


Do you want to just trigger your Ant build script if a check-in is made to Perforce ? If so, that's straightforward; use the Perforce plugin.


You might be able to parse them out of the change list that Hudson generates. I don't know of any way to get it from the p4 plugin, although I think it would be useful information also.

Try something like this:

wget ${BUILD_URL}/changes -O - > changes.txt
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜