【问题标题】:How could I use references in post build task plugin of hudson我如何在 hudson 的后期构建任务插件中使用引用
【发布时间】:2012-01-13 02:50:26
【问题描述】:

我已经认识到 hudson 的 post build task 插件将为开发提供出色的服务。该插件允许我们在日志文本中使用 java regex,并且演示表明我们可以将 hudson 日志中匹配的值传递给脚本。 参考http://wiki.hudson-ci.org/display/HUDSON/Post+build+task。 因此,我有一个想法,我可以使用模式来匹配日志并根据匹配结果“回显”不同的数据。但是,在我的实验中,无法识别引用并传递给脚本。哈德逊日志如下:

Match found for :PASSED: crawlEn(\d+) : True
Logical operation result is TRUE
Running script  : echo %1 > g:\ELLUZZN\.hudson\jobs\test2.txt
[workspace] $ cmd /c call g:\apache-tomcat\temp\hudson373290022084813222.bat

g:\ELLUZZN\.hudson\jobs\HealthCheckTelekomSerbiaTest\workspace>echo   1>C:\Users\ELLUZZN\.hudson\jobs\test2.txt 

g:\ELLUZZN\.hudson\jobs\HealthCheckTelekomSerbiaTest\workspace>exit 0 
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 1

【问题讨论】:

    标签: hudson post-build


    【解决方案1】:

    根据提供的日志,post-build-task 不会将其结果作为参数作为参数运行脚本。

    恐怕您必须在构建后脚本中重复正则表达式搜索才能接收该数据。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多