编辑 Subversion 提交后脚本以启用自动 Hudson 构建
大家好,我不太擅长 Linux,但我需要修改 Subversion 存储库的提交后文件,以使 Hudson 在提交时自动构建。
此页面此处告诉我要这样做:
REPOS="$1"
REV="$2"
UUID=`svnlook uuid $REPOS`
/usr/bin/wget \
--header "Content-Type:text/plain;charset=UTF-8" \
--post-data "`svnlook changed --revision $REV $REPOS`" \
--output-document "-" \
http://server/hudson/subversion/${UUID}/notifyCommit?rev=$REV
我不这样做的部分不知道该代码片段底部给出的地址 URL。我知道我的 Hudson 服务器的地址,但 /subversion
部分让我感到困惑,因为在我的系统上它没有引用任何内容。我的 Subversion 存储库属于服务器上的其他位置,而不是 Hudson 内部。谁能告诉我应该把什么作为 URL(一个例子会有很大帮助)?
Hey guys, I'm not so good with Linux, but I need to modify the post-commit file of my Subversion repository to get Hudson to build automatically on commits.
This page here tells me to do this:
REPOS="$1"
REV="$2"
UUID=`svnlook uuid $REPOS`
/usr/bin/wget \
--header "Content-Type:text/plain;charset=UTF-8" \
--post-data "`svnlook changed --revision $REV $REPOS`" \
--output-document "-" \
http://server/hudson/subversion/${UUID}/notifyCommit?rev=$REV
The part that I don't know is the address URL given at the bottom of that code snippet. I know the address of my Hudson server, but the /subversion
part has me baffled, because on my system that doesn't refer to anything. My Subversion repository belongs somewhere else on the server, not inside Hudson. Can anyone tell me what I'm supposed to put as the URL (an example would help greatly)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://server/hudson/subversion 是由您的 Hudson 管理的地址,而不是由您的 SVN Apache 服务器管理的地址(这确实可以完全是另一台服务器)
除了输入 Hudson 服务器的名称之外,您无需更改任何内容。
http://server/hudson/subversion is an addressed managed by your Hudson, not by your SVN Apache server (which can indeed be another server entirely)
You have nothing to change except put the name of your Hudson server.