未验证 提交 9ffb42d4 编写于 作者: Q quicksilver 提交者: GitHub

Deny jenkins slave pod to remain active for a while (#5225)

* Deny jenkins slave pod to remain active for a while
Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>
上级 0a21933d
...@@ -15,6 +15,7 @@ on: ...@@ -15,6 +15,7 @@ on:
- docker-compose.yml - docker-compose.yml
- Makefile - Makefile
- '!**.md' - '!**.md'
- '!build/ci/jenkins/**'
pull_request: pull_request:
# file paths to consider in the event. Optional; defaults to all. # file paths to consider in the event. Optional; defaults to all.
paths: paths:
...@@ -27,6 +28,7 @@ on: ...@@ -27,6 +28,7 @@ on:
- docker-compose.yml - docker-compose.yml
- Makefile - Makefile
- '!**.md' - '!**.md'
- '!build/ci/jenkins/**'
jobs: jobs:
ubuntu: ubuntu:
......
...@@ -15,6 +15,7 @@ on: ...@@ -15,6 +15,7 @@ on:
- docker-compose.yml - docker-compose.yml
- Makefile - Makefile
- '!**.md' - '!**.md'
- '!build/ci/jenkins/**'
pull_request: pull_request:
# file paths to consider in the event. Optional; defaults to all. # file paths to consider in the event. Optional; defaults to all.
paths: paths:
...@@ -27,6 +28,7 @@ on: ...@@ -27,6 +28,7 @@ on:
- docker-compose.yml - docker-compose.yml
- Makefile - Makefile
- '!**.md' - '!**.md'
- '!build/ci/jenkins/**'
jobs: jobs:
ubuntu: ubuntu:
......
...@@ -31,7 +31,7 @@ pipeline { ...@@ -31,7 +31,7 @@ pipeline {
customWorkspace '/home/jenkins/agent/workspace' customWorkspace '/home/jenkins/agent/workspace'
// We allow this pod to remain active for a while, later jobs can // We allow this pod to remain active for a while, later jobs can
// reuse cache in previous created nodes. // reuse cache in previous created nodes.
idleMinutes 120 // idleMinutes 120
} }
} }
environment { environment {
......
...@@ -4,8 +4,8 @@ apiVersion: kind.x-k8s.io/v1alpha4 ...@@ -4,8 +4,8 @@ apiVersion: kind.x-k8s.io/v1alpha4
networking: networking:
ipFamily: "ipv4" ipFamily: "ipv4"
kubeProxyMode: "iptables" kubeProxyMode: "iptables"
podSubnet: "10.245.0.0/16" podSubnet: "10.247.0.0/16"
serviceSubnet: "10.246.0.0/16" serviceSubnet: "10.248.0.0/16"
nodes: nodes:
- role: control-plane - role: control-plane
- role: worker - role: worker
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册