Skip to content

Commit 2000ef5

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 15cfa65 + bd6b06e commit 2000ef5

File tree

7 files changed

+86
-13
lines changed

7 files changed

+86
-13
lines changed

.github/workflows/github-docker-registry-push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,13 @@ jobs:
204204
platforms: linux/amd64, linux/arm64
205205
push: true
206206
tags: ghcr.io/${{ env.REPO_NAME }}/jenkinsci-tutorials:golang_${{ env.BRANCH }}
207+
208+
- name: Build and push the jenkins agent for cpp tutorial
209+
# This step builds and pushes the Jenkins agent for the C++ tutorial
210+
if: contains(env.files, 'dockerfiles/cpp/Dockerfile')
211+
uses: docker/build-push-action@v6
212+
with:
213+
context: ./dockerfiles/cpp
214+
platforms: linux/amd64, linux/aarch64
215+
push: true
216+
tags: ghcr.io/${{ env.REPO_NAME }}/jenkinsci-tutorials:cpp_agent_${{ env.BRANCH }}

.gitpod/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This Dockerfile is used to create a Gitpod workspace with GitHub CLI installed.
22

33
# We start from the Gitpod full workspace image which includes a broad range of development tools.
4-
FROM gitpod/workspace-full:2025-02-12-08-12-04
4+
FROM gitpod/workspace-full:2025-02-17-19-56-13
55

66
# The RUN command executes a series of commands in the new layer of the image and commits the results.
77
# The following commands are executed:

build-docker-compose.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,23 @@ services:
205205
retries: 5
206206
volumes:
207207
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
208+
cpp:
209+
build: dockerfiles/cpp/.
210+
container_name: desktop-jenkins_agent-1-cpp
211+
profiles:
212+
- cpp
213+
depends_on:
214+
sidekick_service:
215+
condition: service_completed_successfully
216+
jenkins_controller:
217+
condition: service_started
218+
healthcheck:
219+
test: ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
220+
interval: 5s
221+
timeout: 10s
222+
retries: 5
223+
volumes:
224+
- agent-ssh-dir:/home/jenkins/.ssh:ro
208225
volumes:
209226
jenkins_home: null
210227
agent-ssh-dir:

docker-compose.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,23 @@ services:
281281
retries: 5
282282
volumes:
283283
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
284+
cpp:
285+
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:cpp_agent_${BRANCH_SUFFIX}
286+
container_name: desktop-jenkins_agent-1-cpp
287+
profiles:
288+
- cpp
289+
depends_on:
290+
sidekick_service:
291+
condition: service_completed_successfully
292+
jenkins_controller:
293+
condition: service_started
294+
healthcheck:
295+
test: ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
296+
interval: 5s
297+
timeout: 10s
298+
retries: 5
299+
volumes:
300+
- agent-ssh-dir:/home/jenkins/.ssh:ro
284301
volumes:
285302
jenkins_home: null
286303
empty_jenkins_home: null

dockerfiles/cpp/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM jenkins/ssh-agent:6.9.0
2+
3+
# Install necessary C++ build tools
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
build-essential \
6+
cmake \
7+
gcc \
8+
g++ \
9+
clang \
10+
make \
11+
libstdc++-12-dev \
12+
pkg-config \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
# Set environment variables
16+
ENV PATH="/usr/local/bin:$PATH"
17+
18+
# Ensure the ownership of the Jenkins agent home directory is set to the Jenkins user
19+
RUN chown -R jenkins:jenkins "${JENKINS_AGENT_HOME}"

dockerfiles/plugins.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
ant:511.v0a_a_1a_334f41b_
22
antisamy-markup-formatter:162.v0e6ec0fcfcf6
33
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
4-
bootstrap5-api:5.3.3-1
4+
bootstrap5-api:5.3.3-2
55
bouncycastle-api:2.30.1.80-256.vf98926042a_9b_
66
branch-api:2.1214.v3f652804588d
7-
build-timeout:1.35
8-
caffeine-api:3.1.8-133.v17b_1ff2e0599
9-
checks-api:2.2.2
7+
build-timeout:1.36
8+
caffeine-api:3.2.0-161.v691ef352cee1
9+
checks-api:2.2.3
1010
cloudbees-folder:6.982.vf165a_16c9507
1111
commons-lang3-api:3.17.0-84.vb_b_938040b_078
1212
commons-text-api:1.13.0-153.v91dcd89e2a_22
@@ -15,8 +15,8 @@ credentials-binding:687.v619cb_15e923f
1515
credentials:1408.va_622a_b_f5b_1b_1
1616
display-url-api:2.209.v582ed814ff2f
1717
durable-task:581.v299a_5609d767
18-
echarts-api:5.5.1-5
19-
font-awesome-api:6.6.0-2
18+
echarts-api:5.5.1-6
19+
font-awesome-api:6.7.2-1
2020
git-client:6.1.2
2121
git:5.7.0
2222
github-api:1.321-478.vc9ce627ce001
@@ -25,15 +25,15 @@ github:1.41.0
2525
gradle:2.14
2626
instance-identity:201.vd2a_b_5a_468a_a_6
2727
ionicons-api:74.v93d5eb_813d5f
28-
jackson2-api:2.17.0-386.vcb_b_037da_0d62
28+
jackson2-api:2.17.0-389.va_5c7e45cd806
2929
jakarta-activation-api:2.1.3-1
3030
jakarta-mail-api:2.1.3-1
3131
javax-activation-api:1.2.0-7
3232
javax-mail-api:1.6.2-10
3333
jaxb:2.3.9-1
3434
jjwt-api:0.11.5-112.ve82dfb_224b_a_d
35-
jquery3-api:3.7.1-2
36-
junit:1314.vd966e9a_88895
35+
jquery3-api:3.7.1-3
36+
junit:1316.v13ec14a_de230
3737
locale:560.vc5b_91b_3a_2b_68
3838
mailer:489.vd4b_25144138f
3939
matrix-auth:3.2.4
@@ -43,8 +43,8 @@ mina-sshd-api-common:2.14.0-143.v2b_362fc39576
4343
mina-sshd-api-core:2.14.0-143.v2b_362fc39576
4444
okhttp-api:4.11.0-183.va_87fc7a_89810
4545
pipeline-build-step:555.v589d5c24a_3d6
46-
pipeline-graph-analysis:216.vfd8b_ece330ca_
47-
pipeline-graph-view:409.v98f212e980b_4
46+
pipeline-graph-analysis:231.v56354571a_da_0
47+
pipeline-graph-view:413.v204a_03785b_92
4848
pipeline-groovy-lib:752.vdddedf804e72
4949
pipeline-input-step:513.v7eb_fe7e2c0fc
5050
pipeline-milestone-step:119.vdfdc43fc3b_9a_
@@ -56,7 +56,7 @@ pipeline-stage-step:312.v8cd10304c27a_
5656
pipeline-stage-tags-metadata:2.2221.vc657003fb_d93
5757
pipeline-stage-view:2.37
5858
plain-credentials:183.va_de8f1dd5a_2b_
59-
plugin-util-api:5.1.0
59+
plugin-util-api:6.0.0
6060
resource-disposer:0.25
6161
scm-api:703.v72ff4b_259600
6262
script-security:1373.vb_b_4a_a_c26fa_00

updatecli/updatecli.d/ssh-agent.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ targets:
8585
matcher: jenkins/ssh-agent
8686
sourceid: jenkins/ssh-agent
8787
scmid: default
88+
jenkins/cpp-agent:
89+
name: '[jenkins/ssh-agent] Bump Docker image tag in "dockerfiles/cpp/Dockerfile"'
90+
kind: dockerfile
91+
spec:
92+
file: dockerfiles/cpp/Dockerfile
93+
instruction:
94+
keyword: FROM
95+
matcher: jenkins/ssh-agent
96+
sourceid: jenkins/ssh-agent
97+
scmid: default
8898
default-agent:
8999
name: '[jenkins/ssh-agent] Bump Docker image tag in "docker-compose.yaml"'
90100
kind: yaml

0 commit comments

Comments
 (0)