Trigger build in Jenkins/Hudson using hashtag in commit-message

旧城冷巷雨未停 提交于 2019-12-01 05:58:50

I don't know of an out of the box way you can parse the SCM message as part of the trigger. You have a couple of options that might achieve what you want though

  1. Write your own Hudson SCM plugin
  2. Chain your jobs together into a build pipeline. The first job could simply look for that message in the changelog.xml to determine if the next build is triggered or not.

If you are looking at building a pipeline of build jobs, check out the build-pipeline-plugin. http://www.centrumsystems.com.au/blog/?p=121

Anyone got a more elegant solution??

Cheers,

Geoff

There is a plugin called Commit Message Trigger Plugin, but it had just a 0.1 release.

Maybe the easiest way is to use a version control post commit (or push) trigger to start a Hudson Job. You'd one anyway to automatically start your build.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!