Jenkins: Trigger Multi-branch pipeline on upstream change

后端 未结 3 2031
离开以前
离开以前 2020-12-13 00:51

I am currently testing the pipeline approach of Jenkins 2.0 to see if it works for the build environment I am using.

First about the environment itself. It currently

3条回答
  •  死守一世寂寞
    2020-12-13 01:15

    Pipeline Job configuration still natively supports Build Triggers, including reverse build trigger, Build after other projects are built. You can even specify a branch from Pipeline Multi-branch project.

    Unfortunately reverse triggering is not available Pipeline Multi-branch jobs. The closest you can get to reverse triggering is by using Promoted Builds Plugin. But it still doesn't let you configure per branch setup.

    Additionally Snippet Generator clarifies:

    The following variables are currently unavailable inside a Pipeline script:

    NODE_LABELS WORKSPACE SCM-specific variables such as SVN_REVISION

    ps. Maybe the only way would be to prompt from upstream to downstream.

提交回复
热议问题