Let us assume that your job prints something like "Front-End Version: 1.2509". Here is how you print the version number in the jenkins job history:
- Install "Groovy Postbuild" plugin.
- Add a post build action type "Groovy postbuild"
- Insert the below in "Groovy Script" and save
def m = manager.getLogMatcher("^.*Front-End Version: (.*)\$") // to debug using job logs // manager.listener.logger.println("found version:" + m.group(1)) if(m != null && m.matches()) { version = m.group(1) manager.addShortText(version) } - Run the job and you will get the version number next to the build.
