English 中文(简体)
我如何能够在员额建设中利用参考资料,而这正是胡德森的原始任务。
原标题:How could I use references in post build task plugin of hudson

I have recognized that post build task plugin of hudson will provide an excellent service for development. The plugin allows us use java regex in log text, and the demo shows that we could pass the value matched in hudson log to the script. Reference http://wiki.hudson-ci.org/display/HUDSON/Post+build+task. Thus, I have an idea that I could use pattern to match the log and "echo" different data according to matching result. However, in my experiment, the reference could not be recognized and pass into script. The hudson log as follow:

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

g:ELLUZZN.hudsonjobsHealthCheckTelekomSerbiaTestworkspace>echo   1>C:UsersELLUZZN.hudsonjobs	est2.txt 

g:ELLUZZN.hudsonjobsHealthCheckTelekomSerbiaTestworkspace>exit 0 
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 1
最佳回答

浮标后,没有按照你根据所提供的原木所预期的那样,将文字用作参数。

我恐怕你不得不重复在你的后布稿中进行常规搜查,以接收这些数据。

问题回答

暂无回答




相关问题
Configure hudson to build multiple branches

I use an ant file to build a java project in mercurial through hudson. The mailnine has a hudson job running just fine. Recently a new branch was created and pushed to the server by commnd line: hg ...

Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

Using Hudson and build steps with multiple git repositories

I m trying out Hudson to replace our current Buildbot setup. I installed the git plugin. Our current setup is like: ssh://server:/repo/test_framework.git ssh://server:/repo/project_a.git Now, to ...

use hudson to get remote tests results

I ve a server running a proprietary language on which I m able to run "unit tests" in this language. I cannot install a Hudson slave on this machine, but would like to have these tests results ...

Where do I see the shell script output in Hudson

I have written a shell script to build my project using hudson. I have put some comments that will be displayed on the console by using echo command. This will help me to debug the scripts if there ...

Why am I getting handshake_failure with Java SSL cert?

I m trying to use Hudson (which uses SVNKit) to access a Subversion repository that requires a client certificate to access it. I can access the same repository using the same client certificate via ...

热门标签