From c5b8f4a46c12d726b4878ff7ad27a25276b6f7b2 Mon Sep 17 00:00:00 2001 From: Jackson West Date: Mon, 8 Jul 2024 15:35:07 -0500 Subject: [PATCH] only run packges presubmits on main --- .../eks-anywhere-build-tooling/autoscaler-1-26-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/autoscaler-1-27-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/autoscaler-1-28-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml | 2 ++ .../aws-otel-collector-presubmits.yaml | 2 ++ .../aws/eks-anywhere-build-tooling/distribution-presubmits.yaml | 2 ++ jobs/aws/eks-anywhere-build-tooling/emissary-presubmits.yaml | 2 ++ jobs/aws/eks-anywhere-build-tooling/harbor-presubmits.yaml | 2 ++ .../harbor-scanner-trivy-presubmits.yaml | 2 ++ .../hello-eks-anywhere-presubmits.yaml | 2 ++ jobs/aws/eks-anywhere-build-tooling/metallb-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/metrics-server-presubmits.yaml | 2 ++ .../prometheus-node-exporter-presubmits.yaml | 2 ++ .../prometheus-prometheus-presubmits.yaml | 2 ++ jobs/aws/eks-anywhere-build-tooling/redis-presubmits.yaml | 2 ++ jobs/aws/eks-anywhere-build-tooling/trivy-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/autoscaler-1-X-presubmits.yaml | 2 ++ .../aws-otel-collector-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/distribution-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/emissary-presubmits.yaml | 2 ++ .../presubmit/eks-anywhere-build-tooling/harbor-presubmits.yaml | 2 ++ .../harbor-scanner-trivy-presubmits.yaml | 2 ++ .../hello-eks-anywhere-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/metallb-presubmits.yaml | 2 ++ .../eks-anywhere-build-tooling/metrics-server-presubmits.yaml | 2 ++ .../prometheus-node-exporter-presubmits.yaml | 2 ++ .../prometheus-prometheus-presubmits.yaml | 2 ++ .../presubmit/eks-anywhere-build-tooling/redis-presubmits.yaml | 2 ++ .../presubmit/eks-anywhere-build-tooling/trivy-presubmits.yaml | 2 ++ 30 files changed, 60 insertions(+) diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-26-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-26-presubmits.yaml index f9fbc80f..5fd05313 100644 --- a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-26-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-26-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: autoscaler-1-26-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-27-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-27-presubmits.yaml index afd5660c..20f6be35 100644 --- a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-27-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-27-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: autoscaler-1-27-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-28-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-28-presubmits.yaml index b8750387..5349dc40 100644 --- a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-28-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-28-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: autoscaler-1-28-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml index af93ba4d..615fd4d7 100644 --- a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: autoscaler-1-29-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml index 794fc57f..6ce14ca6 100644 --- a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: autoscaler-1-30-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml index ec0011a2..83478ad1 100644 --- a/jobs/aws/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: aws-otel-collector-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/aws-observability/aws-otel-collector/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/distribution-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/distribution-presubmits.yaml index 05349d12..82c1e732 100644 --- a/jobs/aws/eks-anywhere-build-tooling/distribution-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/distribution-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: distribution-tooling-presubmit always_run: false run_if_changed: "^build/lib/.*|Common.mk|projects/distribution/distribution/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/emissary-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/emissary-presubmits.yaml index a4c2ebce..6bcb05ab 100644 --- a/jobs/aws/eks-anywhere-build-tooling/emissary-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/emissary-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: emissary-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_PYTHON_3.9_AL2023_TAG_FILE|^build/lib/.*|Common.mk|projects/emissary-ingress/emissary/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/harbor-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/harbor-presubmits.yaml index 13014a86..51e5bebc 100644 --- a/jobs/aws/eks-anywhere-build-tooling/harbor-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/harbor-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: harbor-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_BASE_TAG_FILE|EKS_DISTRO_MINIMAL_BASE_NGINX_TAG_FILE|EKS_DISTRO_MINIMAL_BASE_GLIBC_TAG_FILE|^build/lib/.*|Common.mk|projects/goharbor/harbor/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml index 47cd41ba..8ee8f517 100644 --- a/jobs/aws/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: harbor-scanner-trivy-tooling-presubmit always_run: false run_if_changed: "^build/lib/.*|Common.mk|projects/aquasecurity/harbor-scanner-trivy/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml index dcbdf370..ae55ddfe 100644 --- a/jobs/aws/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: hello-eks-anywhere-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_NGINX_TAG_FILE|^build/lib/.*|Common.mk|projects/aws-containers/hello-eks-anywhere/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/metallb-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/metallb-presubmits.yaml index cd75a08e..00ed02fc 100644 --- a/jobs/aws/eks-anywhere-build-tooling/metallb-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/metallb-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: metallb-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/metallb/metallb/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/metrics-server-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/metrics-server-presubmits.yaml index 00d2d0d9..eca4871c 100644 --- a/jobs/aws/eks-anywhere-build-tooling/metrics-server-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/metrics-server-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: metrics-server-presubmit always_run: false run_if_changed: "^build/lib/.*|Common.mk|projects/kubernetes-sigs/metrics-server/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml index abd3c3a6..8ac2653e 100644 --- a/jobs/aws/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: prometheus-node-exporter-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/prometheus/node_exporter/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml index de3f038f..c8af09ef 100644 --- a/jobs/aws/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: prometheus-prometheus-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/prometheus/prometheus/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/redis-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/redis-presubmits.yaml index abb97ce8..1728fe9b 100644 --- a/jobs/aws/eks-anywhere-build-tooling/redis-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/redis-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: redis-tooling-presubmit always_run: false run_if_changed: "EKS_DISTRO_MINIMAL_BASE_GLIBC_TAG_FILE|^build/lib/.*|Common.mk|projects/redis/redis/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/jobs/aws/eks-anywhere-build-tooling/trivy-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/trivy-presubmits.yaml index d7877af4..3127202a 100644 --- a/jobs/aws/eks-anywhere-build-tooling/trivy-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/trivy-presubmits.yaml @@ -23,6 +23,8 @@ presubmits: - name: trivy-tooling-presubmit always_run: false run_if_changed: "^build/lib/.*|Common.mk|projects/aquasecurity/trivy/.*" + branches: + - ^main$ cluster: "prow-presubmits-cluster" error_on_eviction: true max_concurrency: 10 diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/autoscaler-1-X-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/autoscaler-1-X-presubmits.yaml index 90fcc684..0f5a5f1f 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/autoscaler-1-X-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/autoscaler-1-X-presubmits.yaml @@ -1,5 +1,7 @@ jobName: autoscaler-{{ .releaseBranch }}-presubmit runIfChanged: EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.* +branches: +- ^main$ imageBuild: true commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml index 204fb243..e1f01326 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/aws-otel-collector-presubmits.yaml @@ -1,5 +1,7 @@ jobName: aws-otel-collector-tooling-presubmit runIfChanged: EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/aws-observability/aws-otel-collector/.* +branches: +- ^main$ imageBuild: true commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/distribution-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/distribution-presubmits.yaml index 95854908..92f1e358 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/distribution-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/distribution-presubmits.yaml @@ -1,5 +1,7 @@ jobName: distribution-tooling-presubmit runIfChanged: ^build/lib/.*|Common.mk|projects/distribution/distribution/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/distribution/distribution diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/emissary-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/emissary-presubmits.yaml index a17ea5d0..f73f0c77 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/emissary-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/emissary-presubmits.yaml @@ -1,5 +1,7 @@ jobName: emissary-tooling-presubmit runIfChanged: EKS_DISTRO_MINIMAL_BASE_PYTHON_3.9_AL2023_TAG_FILE|^build/lib/.*|Common.mk|projects/emissary-ingress/emissary/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/emissary-ingress/emissary diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-presubmits.yaml index 2d249a85..4c1bf017 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-presubmits.yaml @@ -1,5 +1,7 @@ jobName: harbor-tooling-presubmit runIfChanged: EKS_DISTRO_BASE_TAG_FILE|EKS_DISTRO_MINIMAL_BASE_NGINX_TAG_FILE|EKS_DISTRO_MINIMAL_BASE_GLIBC_TAG_FILE|^build/lib/.*|Common.mk|projects/goharbor/harbor/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/goharbor/harbor diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml index 73dc1572..3c0dc123 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/harbor-scanner-trivy-presubmits.yaml @@ -1,5 +1,7 @@ jobName: harbor-scanner-trivy-tooling-presubmit runIfChanged: ^build/lib/.*|Common.mk|projects/aquasecurity/harbor-scanner-trivy/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/aquasecurity/harbor-scanner-trivy diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml index a268d240..e540170a 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/hello-eks-anywhere-presubmits.yaml @@ -1,5 +1,7 @@ jobName: hello-eks-anywhere-tooling-presubmit runIfChanged: EKS_DISTRO_MINIMAL_BASE_NGINX_TAG_FILE|^build/lib/.*|Common.mk|projects/aws-containers/hello-eks-anywhere/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/aws-containers/hello-eks-anywhere diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/metallb-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/metallb-presubmits.yaml index ff33ed23..6253f3c0 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/metallb-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/metallb-presubmits.yaml @@ -1,5 +1,7 @@ jobName: metallb-tooling-presubmit runIfChanged: EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/metallb/metallb/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/metallb/metallb diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/metrics-server-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/metrics-server-presubmits.yaml index 4a545a8a..305900ac 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/metrics-server-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/metrics-server-presubmits.yaml @@ -1,5 +1,7 @@ jobName: metrics-server-presubmit runIfChanged: ^build/lib/.*|Common.mk|projects/kubernetes-sigs/metrics-server/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/kubernetes-sigs/metrics-server diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml index c94954e6..b6ce6c1d 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-node-exporter-presubmits.yaml @@ -1,5 +1,7 @@ jobName: prometheus-node-exporter-tooling-presubmit runIfChanged: EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/prometheus/node_exporter/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/prometheus/node_exporter diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml index c8df6d49..8a0baa55 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/prometheus-prometheus-presubmits.yaml @@ -1,5 +1,7 @@ jobName: prometheus-prometheus-tooling-presubmit runIfChanged: EKS_DISTRO_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/prometheus/prometheus/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/prometheus/prometheus diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/redis-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/redis-presubmits.yaml index 45622b5e..e8d0a340 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/redis-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/redis-presubmits.yaml @@ -1,5 +1,7 @@ jobName: redis-tooling-presubmit runIfChanged: EKS_DISTRO_MINIMAL_BASE_GLIBC_TAG_FILE|^build/lib/.*|Common.mk|projects/redis/redis/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/redis/redis diff --git a/templater/jobs/presubmit/eks-anywhere-build-tooling/trivy-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/trivy-presubmits.yaml index 86340549..fb409052 100644 --- a/templater/jobs/presubmit/eks-anywhere-build-tooling/trivy-presubmits.yaml +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/trivy-presubmits.yaml @@ -1,5 +1,7 @@ jobName: trivy-tooling-presubmit runIfChanged: ^build/lib/.*|Common.mk|projects/aquasecurity/trivy/.* +branches: +- ^main$ commands: - if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi projectPath: projects/aquasecurity/trivy