multibranch-pipeline

Triggering Branch Indexing on Multibranch Pipelines (Jenkins/Git)

百般思念 提交于 2019-11-30 03:51:49
问题 I'm trying to automatically trigger 'Branch Indexing' on a Multibranch Pipelines job in Jenkins. At the moment, only one method seems to actually work, which is polling, but I am unable to do that and polling is a bad solution anyway. The plug-in doesn't support 'Trigger builds remotely (e.g., from scripts)' (options are not saved), so I cannot trigger it via a web hook on push etc. I tried creating a 'trigger' freestyle build on the repo but the 'Post-build Actions - Build other projects'

Jenkins - abort running build if new one is started

ε祈祈猫儿з 提交于 2019-11-29 20:41:21
I use Jenkins and Multibranch Pipeline. I have a job for each active git branch. New build is triggered by push in git repository. What I want is to abort running builds in current branch if new one appears in same branch. For example: I commit and push to branch feature1 . Then BUILD_1 started in Jenkins. I make another commit and push to branch feature1 while BUILD_1 is still running. I want BUILD_1 to be aborted and to start BUILD_2 . I tried to use stage concurrency=x option, and stage-lock-milestone feature, but didn't manage to solve my problem. Also I've read this thread Stopping

How to remotely trigger Jenkins multibranch pipeline project build?

懵懂的女人 提交于 2019-11-28 22:07:51
问题 Title mostly says it. How can you trigger a Jenkins multibranch pipeline project build from a remote git repository? The "Trigger builds remotely" build trigger option does not seem to work, since no tokens that you set are saved. 回答1: At the moment (Jenkins 2.22) the "Trigger builds remotely" build trigger option is visible in the multibranch pipeline job configuration, but does not work (if you check it and specify a token, it gets reset after saving anyway). According to this, it is

Jenkins - abort running build if new one is started

孤者浪人 提交于 2019-11-28 17:03:40
问题 I use Jenkins and Multibranch Pipeline. I have a job for each active git branch. New build is triggered by push in git repository. What I want is to abort running builds in current branch if new one appears in same branch. For example: I commit and push to branch feature1 . Then BUILD_1 started in Jenkins. I make another commit and push to branch feature1 while BUILD_1 is still running. I want BUILD_1 to be aborted and to start BUILD_2 . I tried to use stage concurrency=x option, and stage