Skip to content

Commit dba5645

Browse files
authored
Merge branch 'master' into master
2 parents 486a996 + 0e1d47b commit dba5645

File tree

7 files changed

+72
-69
lines changed

7 files changed

+72
-69
lines changed

.github/workflows/updatecli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install Updatecli in the runner
18-
uses: updatecli/updatecli-action@v2.77.0
18+
uses: updatecli/updatecli-action@v2.78.1
1919

2020
- name: Run Updatecli in Dry Run mode
2121
run: updatecli diff --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml --values ./updatecli/values.temurin.yaml

alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# SOFTWARE.
2222

2323
ARG JAVA_VERSION=17.0.14_7
24-
ARG ALPINE_TAG=3.21.2
24+
ARG ALPINE_TAG=3.21.3
2525
FROM alpine:"${ALPINE_TAG}" AS jre-build
2626

2727
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]

debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
22-
ARG DEBIAN_RELEASE=bookworm-20250203
22+
ARG DEBIAN_RELEASE=bookworm-20250224
2323
FROM debian:"${DEBIAN_RELEASE}"-slim as jre-build
2424

2525
SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"]

docker-bake.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ variable "VERSION" {
5656
}
5757

5858
variable "ALPINE_FULL_TAG" {
59-
default = "3.21.2"
59+
default = "3.21.3"
6060
}
6161

6262
variable "ALPINE_SHORT_TAG" {
@@ -72,7 +72,7 @@ variable "JAVA21_VERSION" {
7272
}
7373

7474
variable "DEBIAN_RELEASE" {
75-
default = "bookworm-20250203"
75+
default = "bookworm-20250224"
7676
}
7777

7878
# Set this value to a specific Windows version to override Windows versions to build returned by windowsversions function

tests/sshAgent.Tests.ps1

Lines changed: 63 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -131,66 +131,69 @@ Describe "[$global:IMAGE_NAME] image has correct version of java and git-lfs ins
131131
}
132132
}
133133

134-
Describe "[$global:IMAGE_NAME] create agent container with pubkey as argument" {
135-
BeforeAll {
136-
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
137-
$exitCode | Should -Be 0
138-
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
139-
Start-Sleep -Seconds 10
140-
}
141-
142-
It 'runs commands via ssh' {
143-
$exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
144-
$exitCode | Should -Be 0
145-
$stdout | Should -Match 'f00'
146-
}
147-
148-
AfterAll {
149-
Cleanup($global:CONTAINERNAME)
150-
}
151-
}
152-
153-
Describe "[$global:IMAGE_NAME] create agent container with pubkey as envvar" {
154-
BeforeAll {
155-
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
156-
$exitCode | Should -Be 0
157-
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
158-
Start-Sleep -Seconds 10
159-
}
160-
161-
It 'runs commands via ssh' {
162-
$exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
163-
$exitCode | Should -Be 0
164-
$stdout | Should -Match 'f00'
165-
Start-Sleep -Seconds 10
166-
}
167-
168-
AfterAll {
169-
Cleanup($global:CONTAINERNAME)
170-
}
171-
}
172-
173-
174-
$global:DOCKER_PLUGIN_DEFAULT_ARG="/usr/sbin/sshd -D -p 22"
175-
Describe "[$global:IMAGE_NAME] create agent container like docker-plugin with '$global:DOCKER_PLUGIN_DEFAULT_ARG' as argument" {
176-
BeforeAll {
177-
[string]::IsNullOrWhiteSpace($global:DOCKER_PLUGIN_DEFAULT_ARG) | Should -BeFalse
178-
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all --env=`"JENKINS_AGENT_SSH_PUBKEY=$global:PUBLIC_SSH_KEY`" `"$global:IMAGE_NAME`" `"$global:DOCKER_PLUGIN_DEFAULT_ARG`""
179-
$exitCode | Should -Be 0
180-
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
181-
Start-Sleep -Seconds 10
182-
}
183-
184-
It 'runs commands via ssh' {
185-
$exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
186-
$exitCode | Should -Be 0
187-
$stdout | Should -Match 'f00'
188-
}
189-
190-
AfterAll {
191-
Cleanup($global:CONTAINERNAME)
192-
}
193-
}
134+
# TODO: restore when https://github.com/jenkins-infra/helpdesk/issues/4557 infra issue is resolved
135+
# Describe "[$global:IMAGE_NAME] create agent container with pubkey as argument" {
136+
# BeforeAll {
137+
# $exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
138+
# $exitCode | Should -Be 0
139+
# Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
140+
# Start-Sleep -Seconds 10
141+
# }
142+
143+
# It 'runs commands via ssh' {
144+
# $exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
145+
# $exitCode | Should -Be 0
146+
# $stdout | Should -Match 'f00'
147+
# }
148+
149+
# AfterAll {
150+
# Cleanup($global:CONTAINERNAME)
151+
# }
152+
# }
153+
154+
# TODO: restore when https://github.com/jenkins-infra/helpdesk/issues/4557 infra issue is resolved
155+
# Describe "[$global:IMAGE_NAME] create agent container with pubkey as envvar" {
156+
# BeforeAll {
157+
# $exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
158+
# $exitCode | Should -Be 0
159+
# Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
160+
# Start-Sleep -Seconds 10
161+
# }
162+
163+
# It 'runs commands via ssh' {
164+
# $exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
165+
# $exitCode | Should -Be 0
166+
# $stdout | Should -Match 'f00'
167+
# Start-Sleep -Seconds 10
168+
# }
169+
170+
# AfterAll {
171+
# Cleanup($global:CONTAINERNAME)
172+
# }
173+
# }
174+
175+
176+
# TODO: restore when https://github.com/jenkins-infra/helpdesk/issues/4557 infra issue is resolved
177+
# $global:DOCKER_PLUGIN_DEFAULT_ARG="/usr/sbin/sshd -D -p 22"
178+
# Describe "[$global:IMAGE_NAME] create agent container like docker-plugin with '$global:DOCKER_PLUGIN_DEFAULT_ARG' as argument" {
179+
# BeforeAll {
180+
# [string]::IsNullOrWhiteSpace($global:DOCKER_PLUGIN_DEFAULT_ARG) | Should -BeFalse
181+
# $exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all --env=`"JENKINS_AGENT_SSH_PUBKEY=$global:PUBLIC_SSH_KEY`" `"$global:IMAGE_NAME`" `"$global:DOCKER_PLUGIN_DEFAULT_ARG`""
182+
# $exitCode | Should -Be 0
183+
# Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
184+
# Start-Sleep -Seconds 10
185+
# }
186+
187+
# It 'runs commands via ssh' {
188+
# $exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
189+
# $exitCode | Should -Be 0
190+
# $stdout | Should -Match 'f00'
191+
# }
192+
193+
# AfterAll {
194+
# Cleanup($global:CONTAINERNAME)
195+
# }
196+
# }
194197

195198
Describe "[$global:IMAGE_NAME] build args" {
196199
BeforeAll {

windows/nanoserver/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ RUN $javaMajorVersion = $env:JAVA_HOME.Substring($env:JAVA_HOME.Length - 2); `
6060
New-Item -Path "C:\jdk-${javaMajorVersion}" -ItemType SymbolicLink -Value "${env:JAVA_HOME}"
6161

6262
# Install git
63-
ARG GIT_VERSION=2.47.1
64-
ARG GIT_PATCH_VERSION=2
63+
ARG GIT_VERSION=2.48.1
64+
ARG GIT_PATCH_VERSION=1
6565
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
6666
# The patch "windows.1" always have a different URL than the subsequent patch (ZIP filename is different)
6767
if($env:GIT_PATCH_VERSION -eq 1) { $url = $('https://github.com/git-for-windows/git/releases/download/v{0}.windows.{1}/MinGit-{0}-64-bit.zip' -f $env:GIT_VERSION, $env:GIT_PATCH_VERSION); } `

windows/windowsservercore/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ ENV JENKINS_AGENT_WORK ${JENKINS_AGENT_WORK}
5555
USER ContainerAdministrator
5656

5757
# Install git
58-
ARG GIT_VERSION=2.47.1
59-
ARG GIT_PATCH_VERSION=2
58+
ARG GIT_VERSION=2.48.1
59+
ARG GIT_PATCH_VERSION=1
6060
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
6161
# The patch "windows.1" always have a different URL than the subsequent patch (ZIP filename is different)
6262
if($env:GIT_PATCH_VERSION -eq 1) { $url = $('https://github.com/git-for-windows/git/releases/download/v{0}.windows.{1}/MinGit-{0}-64-bit.zip' -f $env:GIT_VERSION, $env:GIT_PATCH_VERSION); } `

0 commit comments

Comments
 (0)