From 45e8b6af08998015f7d74a75f583a13476cca43c Mon Sep 17 00:00:00 2001 From: Oliwer Urbaniak Date: Thu, 16 Apr 2026 20:04:56 +0200 Subject: [PATCH 1/4] update Jenkins image version to 2.555.1-lts and fix indentation in hello.py --- Dockerfile | 2 +- myapp/hello.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d988461d..d276a795 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM jenkins/jenkins:2.414.2-jdk11 +FROM jenkins/jenkins:2.555.1-lts USER root RUN apt-get update && apt-get install -y lsb-release python3-pip RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ diff --git a/myapp/hello.py b/myapp/hello.py index e55b2526..ba5c5464 100644 --- a/myapp/hello.py +++ b/myapp/hello.py @@ -1,7 +1,9 @@ import fire + def hello(name="World"): - return "Hello %s!" % name + return "Hello %s!" % name + if __name__ == '__main__': - fire.Fire(hello) \ No newline at end of file + fire.Fire(hello) From 06f762e14018ec1fca1e5f8ba6f8dbd10c69ccc5 Mon Sep 17 00:00:00 2001 From: Oliwer Urbaniak Date: Thu, 16 Apr 2026 20:50:30 +0200 Subject: [PATCH 2/4] add Dockerfile for Python agent with necessary dependencies --- agents/docker-agent-python/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 agents/docker-agent-python/Dockerfile diff --git a/agents/docker-agent-python/Dockerfile b/agents/docker-agent-python/Dockerfile new file mode 100644 index 00000000..ad82d01a --- /dev/null +++ b/agents/docker-agent-python/Dockerfile @@ -0,0 +1,5 @@ +FROM jenkins/agent:alpine-jdk21 +USER root +RUN apk add python3 +RUN apk add py3-pip +USER jenkins \ No newline at end of file From 4ce104698acbec0b843c30dd6732780cb3074436 Mon Sep 17 00:00:00 2001 From: Oliwer Urbaniak Date: Thu, 16 Apr 2026 20:53:04 +0200 Subject: [PATCH 3/4] fix: correct greeting punctuation in helloworld.py --- helloworld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld.py b/helloworld.py index daa3c4af..b0228f4f 100644 --- a/helloworld.py +++ b/helloworld.py @@ -1,2 +1,2 @@ -print("Hello world") +print("Hello world!") From 8ad3d825adb68c19e15a633c8a0bfe9f8b88250b Mon Sep 17 00:00:00 2001 From: Oliwer Urbaniak Date: Thu, 16 Apr 2026 21:07:47 +0200 Subject: [PATCH 4/4] add --break-system-packages option to pip install in Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index da9c3aaa..783e76cf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { echo "Building.." sh ''' cd myapp - pip install -r requirements.txt + pip install --break-system-packages -r requirements.txt ''' } }