How to conditionally build other projects?

前端 未结 6 827
别跟我提以往
别跟我提以往 2020-12-05 01:58

I have a fairly complicated Jenkins job that builds, unit tests and packages a web application. Depending on the situation, I would like to do different things once this job

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 02:13

    Do you use Ant for your builds?

    If so, it's possible to do conditional building in ant by having a set of environment variables your build scripts can use to conditionally build. In Jenkins, your build will then be building all of the projects, but your actual build will decide whether it builds or just short-circuits.

提交回复
热议问题