From e2957b279a193ef24880b84f612d110b1991e65c Mon Sep 17 00:00:00 2001 From: Emmanuel Nyachoke Date: Mon, 4 Nov 2024 11:17:58 +0300 Subject: [PATCH] OZ-726: Add main branch to SCM Webhook filter (#49) --- docker/Dockerfile | 2 +- docker/config/plugins.txt | 2 +- jenkins/jenkins_home/config.xml | 3 ++- jenkins/jenkins_home/jobs/github-webhook/config.xml | 13 ++++++++----- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 920f1bf..18584a8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -ARG VERSION=2.452.2 +ARG VERSION=2.479.1 FROM jenkins/jenkins:$VERSION MAINTAINER Mekom Solutions diff --git a/docker/config/plugins.txt b/docker/config/plugins.txt index bd048d6..21e49f3 100644 --- a/docker/config/plugins.txt +++ b/docker/config/plugins.txt @@ -1,4 +1,4 @@ -git:5.2.1 +git:5.2.2 ansicolor:1.0.2 workflow-aggregator:600.vb_57cdd26fdd7 nodejs:1.6.1 diff --git a/jenkins/jenkins_home/config.xml b/jenkins/jenkins_home/config.xml index 61ce3af..b9b5723 100644 --- a/jenkins/jenkins_home/config.xml +++ b/jenkins/jenkins_home/config.xml @@ -2,8 +2,9 @@ org.jenkinsci.plugins.matrixauth.AmbiguityMonitor + jenkins.diagnostics.ControllerExecutorsNoAgents - 2.452.2 + 2.479.1 2 NORMAL true diff --git a/jenkins/jenkins_home/jobs/github-webhook/config.xml b/jenkins/jenkins_home/jobs/github-webhook/config.xml index 1bb1564..ceae4d5 100644 --- a/jenkins/jenkins_home/jobs/github-webhook/config.xml +++ b/jenkins/jenkins_home/jobs/github-webhook/config.xml @@ -8,6 +8,7 @@ For example by appending the expected parameters to a configurable URL, such as SCM Webhook false + hudson.model.Item.Read:github @@ -19,7 +20,7 @@ For example by appending the expected parameters to a configurable URL, such as false false - + @@ -59,7 +60,7 @@ For example by appending the expected parameters to a configurable URL, such as $repoUrl $scmRef $scmRefForScheduledJobs - (refs/heads/master|refs/heads/main|refs/heads/develop|refs/heads/[0-9]+\.[0-9]+\.x) + (refs/heads/master|refs/heads/main|refs/heads/develop|refs/heads/[0-9]+\.[0-9]+\.x|main) projectType @@ -77,6 +78,8 @@ For example by appending the expected parameters to a configurable URL, such as false false + false + false false @@ -108,12 +111,12 @@ echo "Parsed event variables:" cat $BUILD_PATH/commit_metadata.env - + $JENKINS_HOME/jobs/$JOB_NAME/builds/$BUILD_NUMBER/commit_metadata.env - + version.txt ${ENV,var="repoName"} - ${ENV,var="branchName"} (${ENV,var="commitId"}) false @@ -122,7 +125,7 @@ cat $BUILD_PATH/commit_metadata.env - +