Is it possible for Jenkins to automatically detect and build newly created tags in a git repo?

前端 未结 5 1252
情深已故
情深已故 2020-12-07 12:59

It would be nice for our Jenkins CI server to automatically detect, deploy and build tags as they are created in our Github repository.

Is this possible?

5条回答
  •  情歌与酒
    2020-12-07 13:18

    In the world of modern (?) multi-branch pipelines, building tags works as follows.

    1. Add the "behaviour" to discover tags:
    2. Use plugin Basic Branch Build Strategies to add a "build strategy" for tags: Don't forget to add a build strategy for branches as well; the plugin disables the defaults completely!

提交回复
热议问题