简体   繁体   English

Jenkins-蚂蚁建立Maven部署

[英]Jenkins - Ant Build Maven Deploy

I have a project with a complicated ant build that we would like to remain as ant at the moment (will be converted to maven eventually). 我有一个具有复杂蚂蚁构建的项目,我们现在希望保留为蚂蚁(最终将转换为Maven)。

I am using jenkins at the moment to build/test our application. 我目前正在使用jenkins来构建/测试我们的应用程序。 After build/test, I now want to push the built artefact to a Nexus repository. 构建/测试后,我现在想将构建的工件推入Nexus存储库。

For a Maven project, I can use the post build action "Deploy Artefacts to Maven Repository" to do this. 对于Maven项目,我可以使用构建后操作“将人工制品部署到Maven存储库”来完成。

Whats the best way to structure my Jenkins jobs to achieve an ant build and then deploy the code to Nexus? 构造我的Jenkins职位以实现蚂蚁构建并将代码部署到Nexus的最佳方法是什么?

Have you seen the example Ant scripts in the Sonatype website? 您是否在Sonatype网站上看到了示例Ant脚本?

They actually include pushing artefacts to Nexus: http://central.sonatype.org/pages/apache-ant.html#signing-and-deployments-using-the-maven-ant-tasks 它们实际上包括将人工制品推向Nexus: http : //central.sonatype.org/pages/apache-ant.html#signing-and-deployments-using-the-maven-ant-tasks

Or there is also some more docs at Sonatype: http://books.sonatype.com/nexus-book/reference/staging-deployment.html#staging-ant 或者Sonatype上还有其他一些文档: http : //books.sonatype.com/nexus-book/reference/staging-deployment.html#staging-ant

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM