2020-07-03 10:11:53 -03:00
format_version : 3
pipelines :
2024-07-30 11:54:46 +02:00
SLE15.SP7.Images.To.Test :
2022-04-05 13:13:15 +02:00
group : SLE15.Target
2020-07-03 10:11:53 -03:00
lock_behavior : unlockWhenFinished
materials :
repos :
git : git://botmaster.suse.de/suse-repos.git
auto_update : true
whitelist :
2024-07-08 18:06:24 +02:00
- SUSE:SLE-15-SP7:GA_-_images.yaml
2020-07-03 10:11:53 -03:00
destination : repos
scripts :
auto_update : true
git : https://github.com/openSUSE/openSUSE-release-tools.git
whitelist :
- DO_NOT_TRIGGER
destination : scripts
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
stages :
- Expect.Images.To.Finish :
resources :
- staging-bot
tasks :
- script : |
export PYTHONPATH=scripts
2022-04-22 08:35:17 -03:00
set -e
2024-07-08 18:06:24 +02:00
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP7:GA -r containerfile
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP7:GA -r images
2020-07-03 10:11:53 -03:00
2024-07-30 11:54:46 +02:00
- Release.Images :
2020-07-03 10:11:53 -03:00
approval : manual
roles :
- SLE
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-totest-manager
resources :
- staging-bot
tasks :
- script : |-
2022-02-17 10:29:13 +00:00
set -e
2024-07-08 18:06:24 +02:00
CONTAINERS=$(osc -A https://api.suse.de ls SUSE:SLE-15-SP7:GA | grep "^\(cdi\|virt\)-.*-container")
2022-05-11 18:35:33 -03:00
for container in $CONTAINERS; do
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de release --target-project=SUSE:SLE-15-SP7:GA:TEST --target-repository=containers -r containerfile SUSE:SLE-15-SP7:GA $container
2022-05-11 18:35:33 -03:00
done
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de release --target-project=SUSE:SLE-15-SP7:GA:TEST --target-repository=containers -r images SUSE:SLE-15-SP7:GA sles15-image
PRODUCTS=$(osc -A https://api.suse.de ls SUSE:SLE-15-SP7:GA | grep "^SLES15-SP7" | grep -v release | grep -v : ||:)
2022-08-08 20:31:49 -03:00
if [ -z "${PRODUCTS}" ]; then
echo "[WARNNING] There is no cloud image to be released"
fi
2023-04-17 09:33:57 -03:00
for product in kiwi-templates-Minimal kiwi-templates-Minimal-s390x 000product $PRODUCTS; do
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de release SUSE:SLE-15-SP7:GA $product
2020-07-03 10:11:53 -03:00
done
2021-02-17 15:03:15 -03:00
sleep 600
2024-07-08 18:06:24 +02:00
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:TEST/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
2022-04-22 08:35:17 -03:00
echo PENDING
sleep 600
done
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:TEST/_result?view=summary&repository=containers" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:TEST/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
2021-02-17 15:03:15 -03:00
echo PENDING
sleep 600
done
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:TEST/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
2023-01-31 12:37:51 +01:00
2024-07-30 11:54:46 +02:00
SLE15.SP7.Images.To.Publish :
group : SLE15.Target
materials :
repos :
git : git://botmaster.suse.de/suse-repos.git
auto_update : true
whitelist :
- SUSE:SLE-15-SP7:GA_-_images.yaml
destination : repos
scripts :
auto_update : true
git : https://github.com/openSUSE/openSUSE-release-tools.git
whitelist :
- DO_NOT_TRIGGER
destination : scripts
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
stages :
- Release.Images :
2023-02-09 12:45:59 -03:00
approval : manual
roles :
- SLE
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-totest-manager
resources :
- staging-bot
tasks :
- script : |-
2024-03-15 12:19:59 +01:00
set -e
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de release SUSE:SLE-15-SP7:GA:TEST
2023-02-09 12:45:59 -03:00
sleep 600
2024-07-08 18:06:24 +02:00
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
2023-02-09 12:45:59 -03:00
echo PENDING
sleep 600
done
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
2023-02-09 12:45:59 -03:00
echo PENDING
sleep 600
done
2024-07-08 18:06:24 +02:00
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP7:GA:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
2023-02-09 12:45:59 -03:00