Skip to content

Commit

Permalink
updated outstanding jenkins bases to 4.14 (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy committed Dec 15, 2023
1 parent f53e3f3 commit 9cac458
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
18 changes: 18 additions & 0 deletions _test/kind/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,30 @@ then
timeout=0
while [[ $(curl -s http://localhost/job/containers-quickstarts/job/${AGENT}/lastBuild/api/json --user admin:${token} | jq -r '.building') == "true" ]]
do
if [[ ${timeout} -eq 60 ]]
then
echo "## Things are taking a while... lets check on the logs..."
kubectl logs --tail=-1 -l app.kubernetes.io/component=jenkins-controller -n jenkins
fi

if [[ ${timeout} -gt 300 ]]
then
echo "Timed out waiting for build to finish..."
echo "## Build logs"
get_build_logs

echo "## Pods"
kubectl get pods -n jenkins
kubectl get events -n jenkins

echo "## Controller logs"
kubectl logs --tail=-1 -l app.kubernetes.io/component=jenkins-controller -n jenkins

echo "## Agent logs"
kubectl logs --tail=-1 -l jenkins/jenkins-jenkins-agent=true -n jenkins
exit 1
fi

sleep 2
let "timeout += 2"
done
Expand Down
2 changes: 1 addition & 1 deletion jenkins-agents/jenkins-agent-ansible/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/openshift/origin-jenkins-agent-base:4.9@sha256:94025d11174dbf836427236733d1b82010a21cf83c5321ec168db761fc2c28e7
FROM quay.io/openshift/origin-jenkins-agent-base:4.14@sha256:1284ffe5b63ee7da4c4463d5f44b471fd42ce01c06f5c72edc195a30dcc1f7f4

# renovate: datasource=pypi depName=ansible-core
ARG ANSIBLE_CORE_VERSION=2.16.2
Expand Down
8 changes: 4 additions & 4 deletions jenkins-agents/jenkins-agent-gradle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM quay.io/openshift/origin-jenkins-agent-base:4.9@sha256:94025d11174dbf836427236733d1b82010a21cf83c5321ec168db761fc2c28e7
FROM quay.io/openshift/origin-jenkins-agent-base:4.14@sha256:1284ffe5b63ee7da4c4463d5f44b471fd42ce01c06f5c72edc195a30dcc1f7f4

ENV GRADLE_VERSION=6.3
# renovate: datasource=github-releases depName=gradle/gradle
ENV GRADLE_VERSION=8.5
ENV GRADLE_USER_HOME=/home/jenkins/.gradle

RUN curl -sL -o /tmp/gradle-bin.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
Expand All @@ -11,7 +12,6 @@ RUN curl -sL -o /tmp/gradle-bin.zip https://services.gradle.org/distributions/gr
chown -R 1001:0 /opt/gradle && \
chmod -R g+rw /opt/gradle && \
mkdir /home/jenkins/.gradle && \
chmod 775 /home/jenkins/.gradle && \
alternatives --auto java
chmod 775 /home/jenkins/.gradle

USER 1001
2 changes: 1 addition & 1 deletion jenkins-agents/jenkins-agent-helm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/openshift/origin-jenkins-agent-base:4.9@sha256:94025d11174dbf836427236733d1b82010a21cf83c5321ec168db761fc2c28e7
FROM quay.io/openshift/origin-jenkins-agent-base:4.14@sha256:1284ffe5b63ee7da4c4463d5f44b471fd42ce01c06f5c72edc195a30dcc1f7f4

# renovate: datasource=github-releases depName=helm/helm
ARG HELM_VERSION=v3.13.2
Expand Down
5 changes: 2 additions & 3 deletions jenkins-agents/jenkins-agent-ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/openshift/origin-jenkins-agent-base:4.9@sha256:94025d11174dbf836427236733d1b82010a21cf83c5321ec168db761fc2c28e7
FROM quay.io/openshift/origin-jenkins-agent-base:4.14@sha256:1284ffe5b63ee7da4c4463d5f44b471fd42ce01c06f5c72edc195a30dcc1f7f4

ARG RUBY_VERSION=3.1
# renovate: datasource=repology depName=homebrew/openshift-cli
Expand Down Expand Up @@ -49,7 +49,6 @@ RUN curl -sL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERS
COPY ./root/ /

RUN chown -R 1001:0 /opt/app-root && \
chmod -R ug+rwx /opt/app-root && \
alternatives --auto java
chmod -R ug+rwx /opt/app-root

WORKDIR /opt/app-root

0 comments on commit 9cac458

Please sign in to comment.