forked from jenkinsci/docker-inbound-agents
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile_k8s
45 lines (44 loc) · 1.59 KB
/
Jenkinsfile_k8s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
properties([buildDiscarder(logRotator(daysToKeepStr: '15'))])
parallel(
failFast: false,
'maven-jdk8-nanoserver': {
buildDockerAndPublishImage('inbound-agent-maven:jdk8-nanoserver', [
dockerfile: 'maven/jdk8/Dockerfile.nanoserver',
agentLabels: 'docker-windows-2019 && amd64',
targetplatforms: 'windows/amd64',
imageDir: 'maven/jdk8',
])
},
'maven-jdk11-nanoserver': {
buildDockerAndPublishImage('inbound-agent-maven:jdk11-nanoserver', [
dockerfile: 'maven/jdk11/Dockerfile.nanoserver',
agentLabels: 'docker-windows-2019 && amd64',
targetplatforms: 'windows/amd64',
])
},
'maven-jdk17-nanoserver': {
buildDockerAndPublishImage('inbound-agent-maven:jdk17-nanoserver', [
dockerfile: 'maven/jdk17/Dockerfile.nanoserver',
agentLabels: 'docker-windows-2019 && amd64',
targetplatforms: 'windows/amd64',
imageDir: 'maven/jdk17',
])
},
'maven-jdk21-nanoserver': {
buildDockerAndPublishImage('inbound-agent-maven:jdk21-nanoserver', [
dockerfile: 'maven/jdk21/Dockerfile.nanoserver',
agentLabels: 'docker-windows-2019 && amd64',
targetplatforms: 'windows/amd64',
imageDir: 'maven/jdk21',
])
},
'updatecli': {
// Test all configs
updatecli(action: 'diff')
if (env.BRANCH_IS_PRIMARY) {
// Execute config daily or weekly depending on their folder
updatecli(action: 'apply', config: './updatecli/updatecli.d/daily.d', cronTriggerExpression: '@daily')
updatecli(action: 'apply', config: './updatecli/updatecli.d/weekly.d', cronTriggerExpression: '@weekly')
}
},
)