Stop using lsb_release
There are currently no pipelines.
To run a merge request pipeline, the jobs in the CI/CD configuration file must be configured to run in merge request pipelines and you must have sufficient permissions in the source project.
lsb_release
is no longer provided in CS9 (or RHEL9), so we have to do things a little differently.
For upstreamcentostests.sh
, I had to change from ID to name. Here are the possible values I've seen so far:
RHEL7:
LSB_DISTRO_ID="RedHatEnterpriseServer"
NAME="Red Hat Enterprise Linux Server"
RHEL8:
LSB_DISTRO_ID="RedHatEnterprise"
NAME="Red Hat Enterprise Linux"
CC7:
LSB_DISTRO_ID="CentOS"
NAME="CentOS Linux"
CS8:
LSB_DISTRO_ID="CentOSStream"
NAME="CentOS Stream"
CS9:
LSB_DISTRO_ID="" #-bash: lsb_release: command not found
NAME="CentOS Stream"
Please double-check that I didn't screw up the conditions.
To run a merge request pipeline, the jobs in the CI/CD configuration file must be configured to run in merge request pipelines and you must have sufficient permissions in the source project.