Jenkins Build Pipeline to Publish Applications JAR for Multiple Paths

蹲街弑〆低调 提交于 2019-12-24 08:46:31

问题


I have a repository, where different project owners commit their use-case specific code into their designated sub-directory. You may think of such repo to look something like this:

repo_root
 |
 |-- proj_1 ------ 1_1_code --> 1_1_code.JAR
 |             |-- 2_1_code --> 2_1_code.JAR
 |             |-- 3_1_code --> 3_1_code.JAR
 |             ...
 |-- proj_2 ------ 1_2_code --> 1_2_code.JAR
 |             |-- 2_2_code --> 2_2_code.JAR
 |             |-- 3_2_code --> 3_2_code.JAR
 |             ...
 |-- proj_3 ------ 1_3_code --> 1_3_code.JAR
 |             |-- 2_3_code --> 2_3_code.JAR
 |             |-- 3_3_code --> 3_3_code.JAR
 |             ...
 |...

What I'd like to accomplish is to be able to build a Jenkins build pipeline, by which I'm able to:

  • Build a new JAR for each and every subdirectory
  • Publish the JAR file to a predefined path on Maven Artifactory or HDFS with different version (incremental).

Any idea who do go about this?

来源:https://stackoverflow.com/questions/44185868/jenkins-build-pipeline-to-publish-applications-jar-for-multiple-paths

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