Groovy bosp build plugin allow to run groovy script after build finish.
There are two great things with groovy post build plugin (hudson examples - link):
(Code of plugin is in here. It contains good examples)
(1) You can access model of current build via manager object
There are two great things with groovy post build plugin (hudson examples - link):
(Code of plugin is in here. It contains good examples)
(1) You can access model of current build via manager object
- hudson - the current Hudson instance (see hudson.model.Hudson).
- build - the current build (see hudson.model.AbstractBuild).
- listener - the build listener (see hudson.model.BuildListener).
- logContains(regexp) - returns true if the build log file contains a line matching regexp.
- Change build status of build: buildUnstable(), buildFailure(), buildSuccess()
- Change build page: createSummary(icon) - creates an entry in the build summary page a
Comments