0

I'm in a team to develop plugins in java. We got Maven, a repository and Jenkins, And I got myself a debian-server to test my applications. When I push my commits, this happens:

Push in repository, upload and build in Jenkins. Users download these .jar files and upload these to their server

What I want to be happen: There are two ways, First: After building with Jenkins: Download these files, Second: When pressing "maven build", maven builds my applications and copy these to my server

How can I do this?

(Sorry for my bad English: I'm German)

4

2 回答 2

0

如果我理解正确,以下情况应该会有所帮助。

创造两个工作

  • 第一个工作构建您的工件并将其存档:用户将能够下载它,工作由源修改触发
  • 第二个作业仅手动执行(并且需要两个插件,如下所列),从第一个作业复制工件,然后将它们上传到服务器

您需要安装以下插件:

于 2013-01-30T09:16:45.747 回答
0

当您推送您的 SCM 存储库时,您希望将 Jenkins 构建到您的本地项目中(更新您的 jar),然后将您的最终构建发送到您的服务器。那是你想要的吗?

如果是,我认为该插件会很有趣:

http://evgeny-goldin.com/wiki/Jenkins-maven-plugin#Supported_Plugins

您可以从您的管理 jenkins 目标,pom.xml但我不确定您是否可以获得 jenkins build。

于 2013-01-30T09:25:35.047 回答