Last Successful Artifacts List

。_饼干妹妹 提交于 2020-01-02 17:46:09

问题


I would like to create an archive of the *.jar files in hudson. Currently it does not list the *.jar files created by the build. Is there an addon for this, or is there setup required, if so where?

Here is what I would like it to look like.
(source: nabble.com)

Here is what i currently have.
(source: nabble.com)

edit: also do i need to play with include sets in order to get this working?


回答1:


Edit the project properties. Click on the option "Archive the artifacts", and enter a pattern matching the artifacts you want to keep. For example, *.jar.




回答2:


The presentation is changed based on the number of files you're archiving. There are three modes:

  • Plain list
  • Tree
  • Simple link

To control how many files need to be present before it switches to another presentation mode, set the system properties:

  • hudson.model.Run.ArtifactList.listCutoff (default 16)
  • hudson.model.Run.ArtifactList.treeCutoff (default 40)

Example java call:

java -Dhudson.model.Run.ArtifactList.listCutoff=40 -Dhudson.model.Run.ArtifactList.treeCutoff=100 -jar jenkins.war



来源:https://stackoverflow.com/questions/3187561/last-successful-artifacts-list

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