Jenkins multiple artifacts for the same build

前端 未结 5 997
误落风尘
误落风尘 2021-01-31 13:33

Is there a way to save/archive multiple artifacts from the same build?

Jenkins only allows a single \'Archive the Artifacts\' post build step, and grey\'s out the option

5条回答
  •  青春惊慌失措
    2021-01-31 13:48

    You can use Ant-style pattern, e.g. target/*.jar to archive multiple artifacts.

    And it is possible to use a comma separated list of patterns if your files can't be matched with one pattern, e.g. target/*.jar, target/*.war.

    The ? button next to the input field reveals this info.

提交回复
热议问题