Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tags 如何从cvsnt调用标记信息批处理脚本_Tags_Cvsnt - Fatal编程技术网

Tags 如何从cvsnt调用标记信息批处理脚本

Tags 如何从cvsnt调用标记信息批处理脚本,tags,cvsnt,Tags,Cvsnt,我想在cvsnt服务器上的cvs标记操作期间调用批处理脚本。但每次我得到的都是“脚本执行失败”。我想调用的脚本应该位于哪里,或者如何使用变量对其进行寻址 如果我直接调用shell命令,比如“echo something”,那么一切都可以正常工作,我还可以获得cvsnt添加的额外参数,比如实际的标记、命令和目录。如果我想使用相对路径、无过去或甚至使用${CVSROOT}/CVSROOT/triggerbuild.cmd调用批处理,我得到的所有结果都是“脚本执行失败” 我的标记信息条目: ALL e

我想在cvsnt服务器上的cvs标记操作期间调用批处理脚本。但每次我得到的都是“脚本执行失败”。我想调用的脚本应该位于哪里,或者如何使用变量对其进行寻址

如果我直接调用shell命令,比如“echo something”,那么一切都可以正常工作,我还可以获得cvsnt添加的额外参数,比如实际的标记、命令和目录。如果我想使用相对路径、无过去或甚至使用${CVSROOT}/CVSROOT/triggerbuild.cmd调用批处理,我得到的所有结果都是“脚本执行失败”

我的标记信息条目:

ALL echo 
->结果显示在标记命令文件夹中

ALL echo ${CVSROOT}/CVSROOT/trigger_release_build.bat  
->结果为“脚本执行失败”

我只想调用一个批处理脚本,在某些条件下触发jenkins服务器启动构建。当从本地shell执行时,触发器脚本已完成并且工作正常。cvsnt taginfo文件中只有integratino不起作用

附加:引用的代码是导致故障的全部代码。批处理文件的代码不相关,因为该错误甚至没有调用它

这是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

Windows使用反斜杠作为其目录分隔符,而不是正斜杠。另外,您能解释一下
${CVSROOT}
是什么吗?它是目录的实际名称吗?它应该表示Windows中的变量,还是特定实用程序或脚本语言的变量?请使用该工具更新您的问题,并提供所需信息和您希望我们帮助您的代码。我们需要能够复制您的问题,以帮助您解决问题。您知道我在说什么吗?由于批处理文件不相关,我已删除了附加到您的问题的[]标记。抱歉,“taginfo”标记可以更好地描述问题,但遗憾的是,我不允许设置它。“批处理文件”或“批处理脚本”imho将更详细地描述问题,因为问题仅在调用外部脚本而不是执行内部命令时出现。