我想在 cvsnt 服务器上执行 cvs 标记操作期间调用批处理脚本。但我得到的一切都是“脚本执行失败”。我想调用的脚本应该位于哪里,或者我如何用变量来解决它?
如果我直接调用 shell 命令,如“echo something”,一切正常,我还可以获得 cvsnt 添加的附加参数,如实际的 TAG、命令和目录。如果我想使用相对路径、没有过去甚至使用 ${CVSROOT}/CVSROOT/triggerbuild.cmd 调用批处理,我得到的一切都是“脚本执行失败”。
我的标签信息条目:
ALL echo
-> 导致标签命令文件夹
ALL echo ${CVSROOT}/CVSROOT/trigger_release_build.bat
-> 导致“脚本执行失败”。
我想简单地调用一个批处理脚本来触发我的詹金斯服务器在某些条件下开始构建。当从本地 shell 执行时,触发脚本已完成并且工作正常。只有 cvsnt taginfo 文件中的集成不起作用。
另外:引用的代码是导致失败的整体代码。批处理文件的代码不相关,因为由于错误甚至没有调用它。
这是来自 cvsnt 标记文件的文档:
# The "taginfo" file is used to control pre-tag checks.
# The filter on the right is invoked with the following arguments:
#
# $1 -- tagname
# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d
# $3 -- repository
#
# The filter is passed a series of filename/version pairs on its standard input
#
# A non-zero exit of the filter program will cause the tag to be aborted.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being committed to, relative
# to the $CVSROOT. For the first match that is found, then the remainder
# of the line is the name of the filter to run.
#
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".
使用反斜杠时,我收到有关无效字符 \C 的不同错误消息