Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(infra.ci) using arm64 VM AllInOne agent #7027

Merged
merged 11 commits into from
Mar 6, 2024
36 changes: 1 addition & 35 deletions Jenkinsfile_k8s
Original file line number Diff line number Diff line change
@@ -1,41 +1,7 @@

pipeline {
agent {
kubernetes {
yaml '''
apiVersion: "v1"
kind: "Pod"
metadata:
labels:
jenkins: "agent"
job: "jenkins-io"
spec:
tolerations:
- key: "os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
restartPolicy: "Never"
automountServiceAccountToken: false
containers:
- name: "jnlp"
image: "jenkinsciinfra/builder:3.1.9"
resources:
limits: {}
requests:
memory: "4Gi"
cpu: "2"
'''
}
label 'linux-arm64'
smerle33 marked this conversation as resolved.
Show resolved Hide resolved
}

environment {
Expand Down
2 changes: 2 additions & 0 deletions scripts/awestruct
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set +x

if [[ "$1" = "--dev" ]] ; then
./scripts/ruby bundle exec awestruct $@
else
Expand Down
2 changes: 2 additions & 0 deletions scripts/ruby
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set +x

if [ -n "${USE_LOCAL_RUBY}" ]; then
if [ "$1" = "pull" ]; then
exit 0
Expand Down
Loading