开发者

Hudson build scripts location - recommendation?

开发者 https://www.devze.com 2023-04-10 08:32 出处:网络
I\'m already finishing my project build automation :) with Hudson and Nant. My project structure is something like

I'm already finishing my project build automation :) with Hudson and Nant.

My project structure is something like

$/Project
  build.scripts
    script1.build
    script2.build
    build.properties.xml
  Code
    Project1
    Project2

So Hudson downloads from the root $/Project to the workspace folder.

And everything is ok since the build.scripts a开发者_开发技巧re in the workspace, I run them very easily, however what is bugging me is the fact that since the build scripts are inside the workspace, then I can't program Hudson to run automatically either based on time or changes because it will always detect changes to the files (note build.properties.xml which I check out and check in at build time to store some stats).

Where do you recommend these files to go in and still get the advantage of having them source-controlled?


What I ended up doing is to NOT check-in changes to those files. I changed my CI workflow to create another file (local to the workspace only) where the changes are written to.

This way, I still get the last build info written somewhere to pick it up, and avoid the issue of Jenkins detecting the change.

PS: I changed from Hudson to Jenkins since I saw that most plugins ran away from the former. The transition was too smooth to be true.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号