Skip to content

Commit a966256

Browse files
committed
debug: lightweight build for faster but not too expensive testing
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
1 parent acba0ce commit a966256

3 files changed

Lines changed: 226 additions & 226 deletions

File tree

Jenkinsfile_k8s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ node('linux-arm64-docker') {
7070

7171
// Packer Images stage - Matrix implementation
7272
def matrixAxes = [
73-
cpu_architecture: ['amd64', 'arm64'],
74-
agent_type: ['ubuntu-22.04', 'windows-2019', 'windows-2022', 'windows-2025'],
75-
compute_type: ['amazon-ebs', 'azure-arm', 'docker']
73+
cpu_architecture: ['amd64'],
74+
agent_type: ['windows-2022'],
75+
compute_type: ['azure-arm']
7676
]
7777

7878
def matrixBranches = [:]

build-jenkins-agent-windows.pkr.hcl

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,36 @@ build {
3737

3838
## Why repeating? https://github.com/rgl/packer-plugin-windows-update/issues/90#issuecomment-842569865
3939
# Note that restarts are only done when required by windows updates
40-
provisioner "windows-update" { pause_before = "1m" }
41-
provisioner "windows-update" { pause_before = "1m" }
42-
provisioner "windows-update" { pause_before = "1m" }
43-
44-
# Installing Docker requires a restart: this first call to the installation script will prepare requirements
45-
provisioner "powershell" {
46-
pause_before = "1m"
47-
environment_vars = local.provisioning_env_vars
48-
elevated_user = local.windows_winrm_user[var.image_type]
49-
elevated_password = build.Password
50-
inline = [
51-
"Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1' -o install-docker-ce.ps1",
52-
"install-docker-ce.ps1 -DockerVersion $env:DOCKER_VERSION -NoRestart -Verbose",
53-
]
54-
}
55-
56-
# Required for loading Windows Container Feature
57-
provisioner "windows-restart" {}
58-
59-
# Install Docker-CE with Container feature loaded
60-
provisioner "powershell" {
61-
pause_before = "1m"
62-
environment_vars = local.provisioning_env_vars
63-
elevated_user = local.windows_winrm_user[var.image_type]
64-
elevated_password = build.Password
65-
inline = [
66-
"Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1' -o install-docker-ce.ps1",
67-
"install-docker-ce.ps1 -DockerVersion $env:DOCKER_VERSION -Verbose",
68-
]
69-
}
40+
# provisioner "windows-update" { pause_before = "1m" }
41+
# provisioner "windows-update" { pause_before = "1m" }
42+
# provisioner "windows-update" { pause_before = "1m" }
43+
44+
# # Installing Docker requires a restart: this first call to the installation script will prepare requirements
45+
# provisioner "powershell" {
46+
# pause_before = "1m"
47+
# environment_vars = local.provisioning_env_vars
48+
# elevated_user = local.windows_winrm_user[var.image_type]
49+
# elevated_password = build.Password
50+
# inline = [
51+
# "Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1' -o install-docker-ce.ps1",
52+
# "install-docker-ce.ps1 -DockerVersion $env:DOCKER_VERSION -NoRestart -Verbose",
53+
# ]
54+
# }
55+
56+
# # Required for loading Windows Container Feature
57+
# provisioner "windows-restart" {}
58+
59+
# # Install Docker-CE with Container feature loaded
60+
# provisioner "powershell" {
61+
# pause_before = "1m"
62+
# environment_vars = local.provisioning_env_vars
63+
# elevated_user = local.windows_winrm_user[var.image_type]
64+
# elevated_password = build.Password
65+
# inline = [
66+
# "Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1' -o install-docker-ce.ps1",
67+
# "install-docker-ce.ps1 -DockerVersion $env:DOCKER_VERSION -Verbose",
68+
# ]
69+
# }
7070

7171
provisioner "file" {
7272
# Previous provisioner might restart

0 commit comments

Comments
 (0)