Skip to content

Commit 5a9a300

Browse files
committed
Re-enable Ubuntu 22 builds
Fix two issues with Ubuntu builds. First, the 2 minute timeout before APT settles down appears slightly too short (sometimes), so go for 5 minutes. Second, always force the non-interactive frontend to apt/apt-get, so that Ubuntu 22.04 stops prompting for which services to restart (which hangs the build process) Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent a841e31 commit 5a9a300

File tree

2 files changed

+63
-5
lines changed

2 files changed

+63
-5
lines changed

jenkins/customize-ami.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ while getopts "h?tb" opt; do
5959
esac
6060
done
6161

62-
echo "==> Sleeping 2 minutes"
63-
# Some systems run package updates during boot. Avoid yum/apt/zypper
64-
# lock conflicts by waiting a couple minutes.
65-
sleep 120
66-
6762
pandoc_installed=0
6863

6964
case $PLATFORM_ID in

jenkins/jenkins-amis.hcl

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,68 @@
160160
"associate_public_ip_address" : true,
161161
"ena_support" : true,
162162
"iam_instance_profile" : "{{user `iam_role`}}"
163+
},{
164+
"type": "amazon-ebs",
165+
"name" : "Ubuntu22.04-x86",
166+
"ami_name": "Jenkins Ubuntu 22.04 x86_64 {{user `build_date`}}",
167+
"region": "us-west-2",
168+
"source_ami_filter": {
169+
"filters": {
170+
"architecture": "x86_64",
171+
"virtualization-type": "hvm",
172+
"root-device-type": "ebs",
173+
"name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"
174+
},
175+
"owners": ["099720109477"],
176+
"most_recent": true
177+
},
178+
"ami_block_device_mappings": [ {
179+
"device_name": "/dev/sda1",
180+
"volume_size": 16,
181+
"delete_on_termination": true
182+
} ],
183+
"launch_block_device_mappings": [ {
184+
"device_name": "/dev/sda1",
185+
"volume_size": 16,
186+
"delete_on_termination": true
187+
} ],
188+
"instance_type": "t3.micro",
189+
"ssh_username": "ubuntu",
190+
"ssh_pty" : true,
191+
"associate_public_ip_address" : true,
192+
"ena_support" : true,
193+
"iam_instance_profile" : "{{user `iam_role`}}"
194+
},{
195+
"type": "amazon-ebs",
196+
"name" : "Ubuntu22.04-arm64",
197+
"ami_name": "Jenkins Ubuntu 22.04 arm64 {{user `build_date`}}",
198+
"region": "us-west-2",
199+
"source_ami_filter": {
200+
"filters": {
201+
"architecture": "arm64",
202+
"virtualization-type": "hvm",
203+
"root-device-type": "ebs",
204+
"name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-*"
205+
},
206+
"owners": ["099720109477"],
207+
"most_recent": true
208+
},
209+
"ami_block_device_mappings": [ {
210+
"device_name": "/dev/sda1",
211+
"volume_size": 16,
212+
"delete_on_termination": true
213+
} ],
214+
"launch_block_device_mappings": [ {
215+
"device_name": "/dev/sda1",
216+
"volume_size": 16,
217+
"delete_on_termination": true
218+
} ],
219+
"instance_type": "t4g.micro",
220+
"ssh_username": "ubuntu",
221+
"ssh_pty" : true,
222+
"associate_public_ip_address" : true,
223+
"ena_support" : true,
224+
"iam_instance_profile" : "{{user `iam_role`}}"
163225
},{
164226
"type": "amazon-ebs",
165227
"name" : "RHEL7-x86",
@@ -319,6 +381,7 @@
319381
}],
320382
"provisioners": [{
321383
"type": "shell",
384+
"pause_before": "5m",
322385
"script" : "customize-ami.sh"
323386
}]
324387
}

0 commit comments

Comments
 (0)