Skip to content

Commit a988c17

Browse files
Merge pull request #288 from yuqi-zhang/switch-crio
Switch to faster moving cri-o rpms
2 parents 3863c96 + a8af000 commit a988c17

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

Jenkinsfile.treecompose

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ node(NODE) {
3737
}
3838
}
3939

40+
stage("Pull in creds for cri-o-tested repo") {
41+
withCredentials([
42+
file(credentialsId: params.OPENSHIFT_MIRROR_CREDENTIALS_FILE, variable: 'OPENSHIFT_MIRROR_CREDENTIALS_FILE'),
43+
]) {
44+
sh """cp ${OPENSHIFT_MIRROR_CREDENTIALS_FILE} ${WORKSPACE}/ops-mirror.pem && sed -i -e "s~WORKSPACE~$WORKSPACE~g" ${WORKSPACE}/cri-o-tested.repo"""
45+
}
46+
}
47+
4048
def last_build_version, force_nocache
4149
stage("Check for Changes") { sh """
4250
make repo-refresh

cri-o-tested.repo

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[cri-o-tested]
2+
name=RHEL tested cri-o repo with dependencies
3+
baseurl=https://mirror.ops.rhcloud.com/enterprise/rhel/cri-o-tested/3.11/x86_64/os/
4+
type=rpm-md
5+
skip_if_unavailable=True
6+
gpgcheck=0
7+
enabled=1
8+
sslverify=0
9+
sslclientkey=WORKSPACE/ops-mirror.pem
10+
sslclientcert=WORKSPACE/ops-mirror.pem

host-base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
# SSH
4848
- openssh-server openssh-clients
4949
# Containers
50-
- podman skopeo runc
50+
- podman skopeo runc containernetworking-plugins
5151
- cri-o cri-tools
5252
# Networking
5353
- nfs-utils

host-maipo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repos:
1717
- maipo-glusterfs
1818
- dustymabe-ignition
1919
- lucab-rhcos-coreos-metadata
20+
- cri-o-tested
2021
mutate-os-release: "4.0"
2122
packages:
2223
# auth legacy

pipeline-utils.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def define_properties(timer) {
4343
description: "Credentials for Docker registry.",
4444
defaultValue: 'e3fd566b-46c1-44e4-aec9-bb59214c1926',
4545
required: true),
46+
credentials(name: 'OPENSHIFT_MIRROR_CREDENTIALS_FILE',
47+
credentialType: 'org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl',
48+
description: "OpenShift shared-secrets mirror cred as file.",
49+
defaultValue: '299ad25c-f8d1-4f56-9f00-06a85490321a',
50+
required: true),
4651
// Past here, we're just using parameters as a way to avoid hardcoding internal values; they
4752
// are not actually secret.
4853
booleanParam(name: 'DRY_RUN', defaultValue: developmentPipeline, description: 'If true, do not push changes'),

rdgo/overlay.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ components:
1919
override-version: "1.13.1"
2020
branch: docker-1.13.1-rhel
2121

22-
- distgit: cri-o
23-
- distgit: cri-tools
24-
2522
# pull ignition directly from copr for now
2623
# - src: github:coreos/ignition
2724
# distgit:
@@ -30,12 +27,6 @@ components:
3027
# patches: drop
3128
# branch: master
3229

33-
# Required as a cri-o dependency
34-
- src: https://github.com/containernetworking/plugins.git
35-
distgit:
36-
name: containernetworking-cni
37-
patches: drop
38-
3930
- src: github:openshift/redhat-release-coreos
4031
spec: internal
4132

0 commit comments

Comments
 (0)