mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-09 06:51:23 +00:00
New scripts
This commit is contained in:
parent
4e0507bac1
commit
1152daff61
10
scripts/cancel-build.sh
Executable file
10
scripts/cancel-build.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
BUILD="$1"
|
||||
|
||||
jobs_in_build=$(openqa-cli api jobs build="$BUILD" | jq -r '.jobs[].id' | xargs)
|
||||
|
||||
for id in $jobs_in_build
|
||||
do
|
||||
openqa-cli api -X POST "jobs/$id/cancel"
|
||||
done
|
72
scripts/run-all-flavors.sh
Executable file
72
scripts/run-all-flavors.sh
Executable file
@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
MAJOR_VERSION=9
|
||||
MINOR_VERSION=0
|
||||
|
||||
ROCKY_VERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
||||
ROCKY_ARCH="${ROCKY_ARCH:=x86_64}"
|
||||
ROCKY_EXTRA_ARGS="${ROCKY_EXTRA_ARGS:-}"
|
||||
BUILD_PREFIX="-$(date +%Y%m%d.%H%M%S).0-$(git branch --show-current)"
|
||||
ISO_PREFIX="Rocky-$ROCKY_VERSION-$ROCKY_ARCH"
|
||||
DVD_ISOTYPE=dvd1
|
||||
|
||||
if [[ "$MAJOR_VERSION" -gt "8" ]]; then
|
||||
DVD_ISOTYPE=dvd
|
||||
fi
|
||||
|
||||
# Update fif templates
|
||||
./fifloader.py --clean --load templates.fif.json templates-updates.fif.json
|
||||
|
||||
# POST all the flavors
|
||||
export PS4='# '
|
||||
set -o xtrace
|
||||
openqa-cli api \
|
||||
-X POST isos \
|
||||
ISO="$ISO_PREFIX-$DVD_ISOTYPE.iso" \
|
||||
ARCH="$ROCKY_ARCH" \
|
||||
DISTRI=rocky \
|
||||
FLAVOR=universal \
|
||||
VERSION="$ROCKY_VERSION" \
|
||||
BUILD="$BUILD_PREFIX-universal-$ROCKY_VERSION" \
|
||||
"${ROCKY_EXTRA_ARGS}"
|
||||
|
||||
openqa-cli api \
|
||||
-X POST isos \
|
||||
ISO="$ISO_PREFIX-$DVD_ISOTYPE.iso" \
|
||||
ARCH="$ROCKY_ARCH" \
|
||||
DISTRI=rocky \
|
||||
FLAVOR="dvd-iso" \
|
||||
VERSION="$ROCKY_VERSION" \
|
||||
BUILD="$BUILD_PREFIX-dvd-$ROCKY_VERSION" \
|
||||
"${ROCKY_EXTRA_ARGS}"
|
||||
|
||||
openqa-cli api \
|
||||
-X POST isos \
|
||||
ISO="$ISO_PREFIX-$DVD_ISOTYPE.iso" \
|
||||
ARCH="$ROCKY_ARCH" \
|
||||
DISTRI=rocky \
|
||||
FLAVOR=package-set \
|
||||
VERSION="$ROCKY_VERSION" \
|
||||
BUILD="$BUILD_PREFIX-packageset-$ROCKY_VERSION" \
|
||||
"${ROCKY_EXTRA_ARGS}"
|
||||
|
||||
openqa-cli api \
|
||||
-X POST isos \
|
||||
ISO="$ISO_PREFIX-minimal.iso" \
|
||||
ARCH="$ROCKY_ARCH" \
|
||||
DISTRI=rocky \
|
||||
FLAVOR=minimal-iso \
|
||||
VERSION="$ROCKY_VERSION" \
|
||||
BUILD="$BUILD_PREFIX-minimal-$ROCKY_VERSION" \
|
||||
"${ROCKY_EXTRA_ARGS}"
|
||||
|
||||
openqa-cli api \
|
||||
-X POST isos \
|
||||
ISO="$ISO_PREFIX-boot.iso" \
|
||||
ARCH="$ROCKY_ARCH" \
|
||||
DISTRI=rocky \
|
||||
FLAVOR=boot-iso \
|
||||
VERSION="$ROCKY_VERSION" \
|
||||
BUILD="$BUILD_PREFIX-boot-$ROCKY_VERSION" \
|
||||
"${ROCKY_EXTRA_ARGS}"
|
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
MAJOR_VERSION=8
|
||||
MINOR_VERSION=6
|
||||
MAJOR_VERSION=9
|
||||
MINOR_VERSION=0
|
||||
|
||||
ROCKY_FLAVOR="${ROCKY_FLAVOR:-boot-iso}"
|
||||
ROCKY_VERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
Loading…
Reference in New Issue
Block a user