1

I have a tool that checks code for security flaws. The tool has an open restful API and I would like to be able to accommodate continuous integration tools out there. The idea being that assuming someone uses a Jenkins, Ant, Maven, Apache Gump, CruiseControl,etc they could insert and trigger the execution of the tool within the process somewhere.

I created a .Jar file that takes a few command line parameters and upon execution will start the tool. I was hoping that launching a Jar be flexible enough to be able to be used by many of these different software build programs.

I'm noticing things like Jenkins and Maven have their own plugin systems but for maintainability I'd prefer not to need to create plugins based on each technology. Do you think having a launch able Jar be a possible more independent option?

I can see that ANT has the ability to launch a Jar I'm just not sure it be doable for others?

There a better way I might be overlooking?

4

1 回答 1

0

放入一个 shell,批处理脚本来调用 jar,就 CI 工具而言,你应该没问题。如果您的 jar 启动服务器,请务必提供启动和喊叫脚本,该脚本在成功时以代码 0 退出,否则为非零。

于 2013-10-06T15:59:48.860 回答