Skip to content

Commit c9b2ac1

Browse files
authored
Merge branch 'master' into dependabot/github_actions/master/release-drafter/release-drafter-6.2.0
2 parents 7410f37 + 12e7dcb commit c9b2ac1

File tree

6 files changed

+34
-42
lines changed

6 files changed

+34
-42
lines changed

Jenkinsfile

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,37 @@ properties([
66
pipelineTriggers([cron(cronExpr)]),
77
])
88

9-
def agentSelector(String imageType) {
10-
// Linux agent
11-
if (imageType == 'linux') {
12-
// This function is defined in the jenkins-infra/pipeline-library
13-
if (infra.isTrusted()) {
14-
return 'linux'
15-
} else {
16-
// Need Docker and a LOT of memory for faster builds (due to multi archs) or fallback to linux (trusted.ci)
17-
return 'docker-highmem'
18-
}
19-
}
20-
// Windows Server Core 2022 agent
21-
if (imageType.contains('2022')) {
22-
return 'windows-2022'
23-
}
24-
// Windows Server Core 2019 agent (for nanoserver 1809 & ltsc2019 and for windowservercore ltsc2019)
25-
return 'windows-2019'
26-
}
9+
def agentSelector(String imageType, retryCounter) {
10+
def platform
11+
switch (imageType) {
12+
// nanoserver-1809, nanoserver-ltsc2019 and windowservercore-ltsc2019
13+
case ~/.*(1809|2019)/:
14+
platform = 'windows-2019'
15+
break
2716

28-
// Ref. https://github.com/jenkins-infra/pipeline-library/pull/917
29-
def spotAgentSelector(String agentLabel, int counter) {
30-
// This function is defined in the jenkins-infra/pipeline-library
31-
if (infra.isTrusted()) {
32-
// Return early if on trusted (no spot agent)
33-
return agentLabel
34-
}
17+
// nanoserver-ltsc2022 and windowservercore-ltsc2022
18+
case ~/.*2022/:
19+
platform = 'windows-2022'
20+
break
21+
22+
// nanoserver-ltsc2025 and windowservercore-ltsc2025
23+
case ~/.*2025/:
24+
platform = 'windows-2025'
25+
break
3526

36-
if (counter > 1) {
37-
return agentLabel + ' && nonspot'
27+
// Linux
28+
default:
29+
// Need Docker and a LOT of memory for faster builds (due to multi archs)
30+
platform = 'docker-highmem'
31+
break
3832
}
3933

40-
return agentLabel + ' && spot'
34+
// Defined in https://github.com/jenkins-infra/pipeline-library/blob/master/vars/infra.groovy
35+
return infra.getBuildAgentLabel([
36+
useContainerAgent: false,
37+
platform: platform,
38+
spotRetryCounter: retryCounter
39+
])
4140
}
4241

4342
// Specify parallel stages
@@ -56,7 +55,7 @@ def parallelStages = [failFast: false]
5655
int retryCounter = 0
5756
retry(count: 2, conditions: [agent(), nonresumable()]) {
5857
// Use local variable to manage concurrency and increment BEFORE spinning up any agent
59-
final String resolvedAgentLabel = spotAgentSelector(agentSelector(imageType), retryCounter)
58+
final String resolvedAgentLabel = agentSelector(imageType, retryCounter)
6059
retryCounter++
6160
node(resolvedAgentLabel) {
6261
timeout(time: 60, unit: 'MINUTES') {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ $ make show
145145
"context": ".",
146146
"dockerfile": "alpine/Dockerfile",
147147
"args": {
148-
"ALPINE_TAG": "3.23.2",
148+
"ALPINE_TAG": "3.23.3",
149149
"JAVA_VERSION": "17.0.17_10",
150150
"VERSION": "3355.v388858a_47b_33"
151151
},

alpine/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 ALPINE_TAG=3.23.2
22+
ARG ALPINE_TAG=3.23.3
2323
FROM alpine:"${ALPINE_TAG}" AS jre-build
2424

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

build.ps1

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,7 @@ foreach($agentType in $AgentTypes) {
211211
$mod = Get-InstalledModule -Name Pester -MinimumVersion 5.3.0 -MaximumVersion 5.3.3 -ErrorAction SilentlyContinue
212212
if ($null -eq $mod) {
213213
Write-Host '= TEST: Pester 5.3.x not found: installing...'
214-
$module = 'C:\Program Files\WindowsPowerShell\Modules\Pester'
215-
if (Test-Path $module) {
216-
takeown /F $module /A /R
217-
icacls $module /reset
218-
icacls $module /grant Administrators:'F' /inheritance:d /T
219-
Remove-Item -Path $module -Recurse -Force -Confirm:$false
220-
}
221-
Install-Module -Force -Name Pester -MaximumVersion 5.3.3
214+
Install-Module -Force -Name Pester -MaximumVersion 5.3.3 -Scope CurrentUser
222215
}
223216

224217
Import-Module Pester

docker-bake.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ variable "ON_TAG" {
5555
}
5656

5757
variable "ALPINE_FULL_TAG" {
58-
default = "3.23.2"
58+
default = "3.23.3"
5959
}
6060

6161
variable "ALPINE_SHORT_TAG" {
@@ -67,7 +67,7 @@ variable "DEBIAN_RELEASE" {
6767
}
6868

6969
variable "UBI9_TAG" {
70-
default = "9.7-1768785530"
70+
default = "9.7-1769417801"
7171
}
7272

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

rhel/ubi9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG UBI9_TAG=9.7-1768785530
1+
ARG UBI9_TAG=9.7-1769417801
22
FROM registry.access.redhat.com/ubi9/ubi:"${UBI9_TAG}" AS jre-build
33
SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"]
44

0 commit comments

Comments
 (0)