Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Image CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
Testing
Image CI
Merge requests
!8
WIP: Adding first RH image testing steps
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
WIP: Adding first RH image testing steps
adding_rh_testing
into
master
Overview
2
Commits
42
Pipelines
46
Changes
11
Closed
Daniel Juarez Gonzalez
requested to merge
adding_rh_testing
into
master
3 years ago
Overview
2
Commits
42
Pipelines
46
Changes
11
Expand
0
0
Merge request reports
Compare
master
version 40
25ea199b
3 years ago
version 39
f14e1f1f
3 years ago
version 38
65628a74
3 years ago
version 37
3cbe289a
3 years ago
version 36
cd0d10d0
3 years ago
version 35
5bf19510
3 years ago
version 34
92545299
3 years ago
version 33
de37dea8
3 years ago
version 32
62265183
3 years ago
version 31
0b533426
3 years ago
version 30
7267be10
3 years ago
version 29
186ff61f
3 years ago
version 28
a828963e
3 years ago
version 27
2feb957c
3 years ago
version 26
e7293296
3 years ago
version 25
8412eaed
3 years ago
version 24
dea2bae3
3 years ago
version 23
95485cd0
3 years ago
version 22
51408187
3 years ago
version 21
983b04d1
3 years ago
version 20
1f77e741
3 years ago
version 19
5b0d5d5a
3 years ago
version 18
8d4afc9d
3 years ago
version 17
d62b8149
3 years ago
version 16
1f8d0962
3 years ago
version 15
7f843ba3
3 years ago
version 14
cf006840
3 years ago
version 13
c00ece11
3 years ago
version 12
864841b7
3 years ago
version 11
396bcb7d
3 years ago
version 10
cc9817db
3 years ago
version 9
724ca122
3 years ago
version 8
774d57da
3 years ago
version 7
d7d1dc72
3 years ago
version 6
df63003c
3 years ago
version 5
a55f7649
3 years ago
version 4
af737a53
3 years ago
version 3
6efa7895
3 years ago
version 2
521f6ff0
3 years ago
version 1
37f8e9da
3 years ago
master (base)
and
latest version
latest version
e8b5a24a
42 commits,
3 years ago
version 40
25ea199b
41 commits,
3 years ago
version 39
f14e1f1f
40 commits,
3 years ago
version 38
65628a74
39 commits,
3 years ago
version 37
3cbe289a
38 commits,
3 years ago
version 36
cd0d10d0
37 commits,
3 years ago
version 35
5bf19510
36 commits,
3 years ago
version 34
92545299
35 commits,
3 years ago
version 33
de37dea8
34 commits,
3 years ago
version 32
62265183
33 commits,
3 years ago
version 31
0b533426
32 commits,
3 years ago
version 30
7267be10
31 commits,
3 years ago
version 29
186ff61f
30 commits,
3 years ago
version 28
a828963e
29 commits,
3 years ago
version 27
2feb957c
28 commits,
3 years ago
version 26
e7293296
27 commits,
3 years ago
version 25
8412eaed
26 commits,
3 years ago
version 24
dea2bae3
25 commits,
3 years ago
version 23
95485cd0
24 commits,
3 years ago
version 22
51408187
23 commits,
3 years ago
version 21
983b04d1
22 commits,
3 years ago
version 20
1f77e741
21 commits,
3 years ago
version 19
5b0d5d5a
20 commits,
3 years ago
version 18
8d4afc9d
19 commits,
3 years ago
version 17
d62b8149
18 commits,
3 years ago
version 16
1f8d0962
17 commits,
3 years ago
version 15
7f843ba3
16 commits,
3 years ago
version 14
cf006840
15 commits,
3 years ago
version 13
c00ece11
14 commits,
3 years ago
version 12
864841b7
13 commits,
3 years ago
version 11
396bcb7d
12 commits,
3 years ago
version 10
cc9817db
11 commits,
3 years ago
version 9
724ca122
10 commits,
3 years ago
version 8
774d57da
9 commits,
3 years ago
version 7
d7d1dc72
8 commits,
3 years ago
version 6
df63003c
7 commits,
3 years ago
version 5
a55f7649
6 commits,
3 years ago
version 4
af737a53
5 commits,
3 years ago
version 3
6efa7895
3 commits,
3 years ago
version 2
521f6ff0
2 commits,
3 years ago
version 1
37f8e9da
1 commit,
3 years ago
11 files
+
231
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
ci/common.yml
+
24
−
17
Options
@@ -17,21 +17,28 @@
.get_latest_image
:
&get_latest_image
-
|
if [[ -z "${IMAGE}" ]]; then
if [[ "${OS:
-1
}" == "
s
" ]]; then
OS_DISTRO="
CS
"
OS_MAJOR="${OS:
0:
-1}"
if [[ "${OS:
0:2
}" == "
RH
" ]]; then
OS_DISTRO="
RHEL
"
OS_MAJOR="${OS:
-1}"
else
OS_MAJOR="${OS}"
if [[ "${OS}" -eq 7 ]]; then
OS_DISTRO="CC"
# All CentOS images are public, so we add an extra parameter for finer searching
OS_VISIBILITY="--public"
if [[ "${OS: -1}" == "s" ]]; then
OS_DISTRO="CS"
OS_MAJOR="${OS:0:-1}"
else
OS_DISTRO="C"
OS_MAJOR="${OS}"
if [[ "${OS}" -eq 7 ]]; then
OS_DISTRO="CC"
else
OS_DISTRO="C"
fi
fi
fi
IMAGE=$(openstack image list --property os_distro="${OS_DISTRO}" --property os_distro_major="${OS_MAJOR}" --property architecture="${ARCH}" --property os_edition="Base"
--public
--sort created_at -c ID -f value | tail -n1)
IMAGE=$(openstack image list --property os_distro="${OS_DISTRO}" --property os_distro_major="${OS_MAJOR}" --property architecture="${ARCH}" --property os_edition="Base"
$OS_VISIBILITY
--sort created_at -c ID -f value | tail -n1)
if [[ -z "${IMAGE}" ]]; then
echo "No image found matching:"
echo openstack image list --property os_distro="${OS_DISTRO}" --property os_distro_major="${OS_MAJOR}" --property architecture="${ARCH}" --property os_edition="Base"
--public
--sort created_at
echo openstack image list --property os_distro="${OS_DISTRO}" --property os_distro_major="${OS_MAJOR}" --property architecture="${ARCH}" --property os_edition="Base"
$OS_VISIBILITY
--sort created_at
exit 1
fi
fi
@@ -41,8 +48,8 @@
script
:
-
export OS_PROJECT_NAME="${PROJECT_PHYSICAL}"
-
*get_latest_image
-
echo bash testallthethings.sh -i "${IMAGE}" -f "${FLAVOR}"
-
bash testallthethings.sh -i "${IMAGE}" -f "${FLAVOR}"
-
echo bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "${FLAVOR}"
-
bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "${FLAVOR}"
allow_failure
:
true
.test_unmanaged_virtual
:
@@ -50,8 +57,8 @@
script
:
-
export OS_PROJECT_NAME="${PROJECT_VIRTUAL}"
-
*get_latest_image
-
echo bash testallthethings.sh -i "${IMAGE}" -f "m2.small"
-
bash testallthethings.sh -i "${IMAGE}" -f "m2.small"
-
echo bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "m2.small"
-
bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "m2.small"
.test_puppet_physical
:
extends
:
.openstack
@@ -62,8 +69,8 @@
-
export OS_PROJECT_NAME="${PROJECT_PHYSICAL}"
-
*get_latest_image
-
yum install -y openssh-clients jq
-
echo bash testallthethings.sh -i "${IMAGE}" -f "${FLAVOR}" -p
-
bash testallthethings.sh -i "${IMAGE}" -f "${FLAVOR}" -p
-
echo bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "${FLAVOR}" -p
-
bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "${FLAVOR}" -p
allow_failure
:
true
.test_puppet_virtual
:
@@ -75,5 +82,5 @@
-
export OS_PROJECT_NAME="${PROJECT_VIRTUAL}"
-
*get_latest_image
-
yum install -y openssh-clients jq
-
echo bash testallthethings.sh -i "${IMAGE}" -f "m2.small" -p
-
bash testallthethings.sh -i "${IMAGE}" -f "m2.small" -p
-
echo bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "m2.small" -p
-
bash testallthethings.sh
-d "${OS_DISTRO}" -m "${OS_MAJOR}"
-i "${IMAGE}" -f "m2.small" -p
Loading