From c50fa0b05348b727a4e429da39ff5c70c4a2e8c0 Mon Sep 17 00:00:00 2001 From: donal Date: Thu, 20 Jun 2019 17:24:09 +0100 Subject: [PATCH 1/2] Added webhook to branch scanner in the seed job and corresponding plugins --- configuration/jobs/seed-multibranch-pipelines/config.xml | 7 ++++++- plugins.txt | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configuration/jobs/seed-multibranch-pipelines/config.xml b/configuration/jobs/seed-multibranch-pipelines/config.xml index 8ec8d89..909f3bd 100644 --- a/configuration/jobs/seed-multibranch-pipelines/config.xml +++ b/configuration/jobs/seed-multibranch-pipelines/config.xml @@ -92,7 +92,12 @@ try { } } triggers { - periodic(1) + // periodic(1) // 1 minute + periodic(86400000) // 1 day + computedFolderWebHookTrigger { + // The token to match with webhook token. + token(project) + } } orphanedItemStrategy { discardOldItems { diff --git a/plugins.txt b/plugins.txt index 73d3bef..f8ef013 100644 --- a/plugins.txt +++ b/plugins.txt @@ -34,6 +34,7 @@ docker-commons:1.13 docker-workflow:1.17 durable-task:1.29 favorite:2.3.2 +generic-webhook-trigger:1.54 git-client:2.7.6 git:3.9.3 github-api:1.95 @@ -145,6 +146,7 @@ maven-plugin:3.2 metrics:4.0.2.3 mq-notifier:1.2.8 multiple-scms:0.6 +multibranch-scan-webhook-trigger:1.0.5 nexus-artifact-uploader:2.10 nexus-jenkins-plugin:3.5.20190313-114450.3bfee7f node-iterator-api:1.5 @@ -168,8 +170,6 @@ ssh-slaves:1.29.4 summary_report:1.15 support-core:2.56 timestamper:1.9 -vsphere-cloud:2.19 -windows-slaves:1.4 ws-cleanup:0.37 xunit:2.3.3 code-coverage-api:1.0.7 From 3f4defc8c431c60daa9c24b479e7fee8e031a593 Mon Sep 17 00:00:00 2001 From: donal Date: Thu, 20 Jun 2019 17:30:29 +0100 Subject: [PATCH 2/2] Remove periodic timestamp as depreciated --- configuration/jobs/seed-multibranch-pipelines/config.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/configuration/jobs/seed-multibranch-pipelines/config.xml b/configuration/jobs/seed-multibranch-pipelines/config.xml index 909f3bd..09ecf91 100644 --- a/configuration/jobs/seed-multibranch-pipelines/config.xml +++ b/configuration/jobs/seed-multibranch-pipelines/config.xml @@ -92,8 +92,6 @@ try { } } triggers { - // periodic(1) // 1 minute - periodic(86400000) // 1 day computedFolderWebHookTrigger { // The token to match with webhook token. token(project)