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