Skip to content

Commit ee34108

Browse files
committed
jenkins: Update AMIs / add CentOS
Updates to allow rebuilding AMIs, including adding a CentOS AMI and bumping the Automake from 1.15 to 1.16.1, as 1.15 doesn't build on FreeBSD 11.1 for some reason. Signed-off-by: Brian Barrett <[email protected]>
1 parent 420e511 commit ee34108

File tree

4 files changed

+27
-14
lines changed

4 files changed

+27
-14
lines changed

jenkins/agent-setup-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ install_autotools ()
7070
export PATH="${old_PATH}"
7171
}
7272

73-
install_autotools 2.69 1.15 2.4.6 ${SOFTWARE_ROOT}/autotools-2.69-1.15.0-2.4.6
73+
install_autotools 2.69 1.16.1 2.4.6 ${SOFTWARE_ROOT}/autotools-2.69-1.16.1-2.4.6

jenkins/build-amis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ while getopts "h?a:l" opt; do
2121
case "$opt" in
2222
h|\?)
2323
echo "usage: build-ami.sh [-a <ami list>]"
24-
echo " -a <ami list> Only build amis in ami list"
24+
echo " -a <ami list> Only build amis in ami list (comma separated)"
2525
echo " -l List ami names available for building"
2626
exit 1
2727
;;

jenkins/customize-ami.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ done
5555
echo "==> Installing packages"
5656

5757
case $PLATFORM_ID in
58-
rhel)
58+
rhel|centos)
5959
# RHEL's default repos only include the "base" compiler
6060
# version, so don't worry about script version
6161
# differentiation.
@@ -79,7 +79,7 @@ case $PLATFORM_ID in
7979
python27-boto3
8080
labels="${labels} linux amazon_linux_${VERSION_ID}"
8181
case $VERSION_ID in
82-
2016.09|2017.03)
82+
2016.09|2017.03|2017.09)
8383
# clang == 3.6.2
8484
sudo yum -y install gcc44 gcc44-c++ gcc44-gfortran \
8585
gcc48 gcc48-c++ gcc48-gfortran clang
@@ -129,7 +129,7 @@ case $PLATFORM_ID in
129129
python-boto python-boto3 python-mock
130130
labels="${labels} linux sles_${VERSION_ID}"
131131
case $VERSION_ID in
132-
12.2)
132+
12.2|12.3)
133133
# gcc5 == 5.3.1
134134
# gcc6 == 6.2.1
135135
sudo zypper -n install gcc48 gcc48-c++ gcc48-fortran \

jenkins/packer.json

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
},
88
"builders": [{
99
"type": "amazon-ebs",
10-
"name" : "AmazonLinux17.03",
10+
"name" : "AmazonLinux17.09",
1111
"region": "us-west-2",
12-
"source_ami": "ami-4836a428",
12+
"source_ami": "ami-d874e0a0",
1313
"instance_type": "t2.micro",
1414
"ssh_username": "ec2-user",
1515
"ssh_pty" : true,
@@ -22,7 +22,7 @@
2222
"type": "amazon-ebs",
2323
"name" : "Ubuntu16.04",
2424
"region": "us-west-2",
25-
"source_ami": "ami-a58d0dc5",
25+
"source_ami": "ami-4e79ed36",
2626
"instance_type": "t2.micro",
2727
"ssh_username": "ubuntu",
2828
"ssh_pty" : true,
@@ -33,26 +33,39 @@
3333
"iam_instance_profile" : "{{user `iam_role`}}"
3434
},{
3535
"type": "amazon-ebs",
36-
"name" : "RHEL73",
36+
"name" : "RHEL74",
3737
"region": "us-west-2",
38-
"source_ami": "ami-6f68cf0f",
38+
"source_ami": "ami-223f945a",
3939
"instance_type": "t2.micro",
4040
"ssh_username": "ec2-user",
4141
"ssh_pty" : true,
42-
"ami_name": "Jenkins RHEL 7.3 {{user `build_date`}}",
42+
"ami_name": "Jenkins RHEL 7.4 {{user `build_date`}}",
4343
"associate_public_ip_address" : true,
4444
"sriov_support" : true,
4545
"ena_support" : true,
4646
"iam_instance_profile" : "{{user `iam_role`}}"
4747
},{
4848
"type": "amazon-ebs",
49-
"name" : "SLES12sp2",
49+
"name" : "CentOS74",
5050
"region": "us-west-2",
51-
"source_ami": "ami-e4a30084",
51+
"source_ami": "ami-a042f4d8",
52+
"instance_type": "t2.micro",
53+
"ssh_username": "centos",
54+
"ssh_pty" : true,
55+
"ami_name": "Jenkins CentOS 7.4 {{user `build_date`}}",
56+
"associate_public_ip_address" : true,
57+
"sriov_support" : true,
58+
"ena_support" : true,
59+
"iam_instance_profile" : "{{user `iam_role`}}"
60+
},{
61+
"type": "amazon-ebs",
62+
"name" : "SLES12sp3",
63+
"region": "us-west-2",
64+
"source_ami": "ami-6bc56f13",
5265
"instance_type": "t2.micro",
5366
"ssh_username": "ec2-user",
5467
"ssh_pty" : true,
55-
"ami_name": "Jenkins SLES 12sp2 {{user `build_date`}}",
68+
"ami_name": "Jenkins SLES 12sp3 {{user `build_date`}}",
5669
"associate_public_ip_address" : true,
5770
"sriov_support" : true,
5871
"ena_support" : true,

0 commit comments

Comments
 (0)