2021-05-05 11:44:41 +02:00
format_version : 3
2021-05-06 09:09:42 +02:00
pipelines :
2021-05-05 11:44:41 +02:00
BCI.RelPkgs :
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
git :
git : https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
stages :
- Create.Release.Packages :
approval : manual
resources :
- repo-checker
tasks :
- script : ./pkglistgen.py -A https://api.opensuse.org update_and_solve -p devel:BCI -s target --only-release-packages --force
Pkglistgen.BCI :
group : BCI
lock_behavior : unlockWhenFinished
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
git :
git : https://github.com/openSUSE/openSUSE-release-tools.git
stages :
- pkglistgen :
approval :
type : manual
jobs :
BCI_target :
resources :
- repo-checker
tasks :
- script : python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p devel:BCI -s target
2021-05-26 17:12:58 +02:00
2022-11-11 10:17:27 +01:00
2021-09-13 13:56:58 +02:00
SLE_BCI_15SP3.RelPkgs :
2021-05-26 17:12:58 +02:00
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
git :
git : https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
stages :
- Create.Release.Packages :
approval : manual
resources :
- repo-checker
tasks :
- script : ./pkglistgen.py -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP3:Update:BCI -s target --only-release-packages --force
2021-09-13 13:56:58 +02:00
Pkglistgen.SLE_BCI_15SP3 :
2021-05-26 17:12:58 +02:00
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
2021-07-09 15:34:40 +02:00
repos :
git : git://botmaster.suse.de/suse-repos.git
auto_update : true
destination : repos
whitelist :
- SUSE:SLE-15-SP3:Update_-_standard.yaml
2021-06-21 17:09:01 +02:00
scripts :
auto_update : true
2021-05-26 17:12:58 +02:00
git : https://github.com/openSUSE/openSUSE-release-tools.git
2021-06-21 17:09:01 +02:00
whitelist :
- DO_NOT_TRIGGER
destination : scripts
2021-07-09 15:34:40 +02:00
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
2021-05-26 17:12:58 +02:00
stages :
- pkglistgen :
approval :
type : manual
jobs :
BCI_target :
resources :
- repo-checker
tasks :
2021-07-09 15:34:40 +02:00
- script : ./scripts/pkglistgen.py -d -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP3:Update:BCI -s target
2021-06-08 15:53:14 +02:00
- Expect.Images.To.Finish :
resources :
- staging-bot
tasks :
- script : |
export PYTHONPATH=scripts
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP3:Update:BCI -r images
- Release.Images.to.Product :
approval : manual
roles :
- SLE
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-totest-manager
2022-11-16 17:16:41 +01:00
BCI_TOKEN : '{{SECRET:[opensuse.secrets][BCI_TOKEN]}}'
2021-06-08 15:53:14 +02:00
resources :
- staging-bot
tasks :
2022-11-17 13:02:43 +01:00
# can't use osc command due to https://github.com/openSUSE/osc/issues/1194
2021-06-08 15:53:14 +02:00
- script : |-
2022-11-16 17:16:41 +01:00
SPRJ=SUSE:SLE-15-SP3:Update:BCI
2021-06-08 15:53:14 +02:00
for arch in aarch64 ppc64le s390x x86_64 ; do
2022-11-17 11:03:26 +01:00
PKG="000product:SLE_BCI-ftp-POOL-$arch"
PRJ="SUSE:Products:SLE-BCI:15-SP3:$arch"
2022-11-17 13:39:22 +01:00
curl -X POST -H "Authorization: Token $BCI_TOKEN" "https://api.suse.de/trigger/release?project=${SPRJ}&package=${PKG}&targetproject=${PRJ}&targetrepository=images&filter_source_repository=\"images\""
2021-06-08 15:53:14 +02:00
done
for arch in aarch64 ppc64le s390x x86_64 ; do
sleep 600
2022-11-16 17:16:41 +01:00
while (osc -A https://api.suse.de/ api "/build/$PRJ/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
2021-06-08 15:53:14 +02:00
echo PENDING
sleep 600
done
2022-11-16 17:16:41 +01:00
osc -A https://api.suse.de/ api "/build/$PRJ/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
2021-06-08 15:53:14 +02:00
done
2021-09-13 13:56:58 +02:00
SLE_BCI_15SP4.RelPkgs :
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
git :
git : https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
stages :
- Create.Release.Packages :
approval : manual
resources :
- repo-checker
tasks :
- script : ./pkglistgen.py -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP4:Update:BCI -s target --only-release-packages --force
Pkglistgen.SLE_BCI_15SP4 :
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
repos :
git : git://botmaster.suse.de/suse-repos.git
auto_update : true
destination : repos
whitelist :
- SUSE:SLE-15-SP4:Update_-_standard.yaml
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 :
- pkglistgen :
approval :
type : manual
jobs :
BCI_target :
resources :
- repo-checker
tasks :
- script : ./scripts/pkglistgen.py -d -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP4:Update:BCI -s target
- Expect.Images.To.Finish :
resources :
- staging-bot
tasks :
- script : |
export PYTHONPATH=scripts
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP4:Update:BCI -r images
- Release.Images.to.Product :
approval : manual
roles :
- SLE
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-totest-manager
2022-11-16 17:16:41 +01:00
BCI_TOKEN : '{{SECRET:[opensuse.secrets][BCI_TOKEN]}}'
2021-09-13 13:56:58 +02:00
resources :
- staging-bot
tasks :
2022-11-17 13:02:43 +01:00
# can't use osc command due to https://github.com/openSUSE/osc/issues/1194
2021-09-13 13:56:58 +02:00
- script : |-
2022-11-16 17:16:41 +01:00
SPRJ=SUSE:SLE-15-SP4:Update:BCI
2021-09-13 13:56:58 +02:00
for arch in aarch64 ppc64le s390x x86_64 ; do
2022-11-17 11:03:26 +01:00
PKG="000product:SLE_BCI-ftp-POOL-$arch"
PRJ="SUSE:Products:SLE-BCI:15-SP4:$arch"
2022-11-17 13:39:22 +01:00
curl -X POST -H "Authorization: Token $BCI_TOKEN" "https://api.suse.de/trigger/release?project=${SPRJ}&package=${PKG}&targetproject=${PRJ}&targetrepository=images&filter_source_repository=\"images\""
2021-09-13 13:56:58 +02:00
done
for arch in aarch64 ppc64le s390x x86_64 ; do
sleep 600
2022-11-16 17:16:41 +01:00
while (osc -A https://api.suse.de/ api "/build/$PRJ/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
2021-09-13 13:56:58 +02:00
echo PENDING
sleep 600
done
2022-11-16 17:16:41 +01:00
osc -A https://api.suse.de/ api "/build/$PRJ/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
2021-09-13 13:56:58 +02:00
done
2022-11-10 15:07:47 +01:00
SLE_BCI_15SP5.RelPkgs :
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
git :
git : https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-staging-bot
stages :
- Create.Release.Packages :
approval : manual
resources :
- repo-checker
tasks :
- script : ./pkglistgen.py -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP5:Update:BCI -s target --only-release-packages --force
Pkglistgen.SLE_BCI_15SP5 :
group : BCI
lock_behavior : unlockWhenFinished
timer :
spec : 0 10 * ? * *
only_on_changes : false
materials :
repos :
git : git://botmaster.suse.de/suse-repos.git
auto_update : true
destination : repos
whitelist :
- SUSE:SLE-15-SP5:Update_-_standard.yaml
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 :
- pkglistgen :
approval :
type : manual
jobs :
BCI_target :
resources :
- repo-checker
tasks :
- script : ./scripts/pkglistgen.py -d -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP5:Update:BCI -s target
- Expect.Images.To.Finish :
resources :
- staging-bot
tasks :
- script : |
export PYTHONPATH=scripts
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP5:Update:BCI -r images
- Release.Images.to.Product :
approval : manual
roles :
- SLE
environment_variables :
OSC_CONFIG : /home/go/config/oscrc-totest-manager
2022-11-17 11:03:26 +01:00
BCI_TOKEN : '{{SECRET:[opensuse.secrets][BCI_TOKEN]}}'
2022-11-10 15:07:47 +01:00
resources :
- staging-bot
tasks :
2022-11-17 13:02:43 +01:00
# can't use osc command due to https://github.com/openSUSE/osc/issues/1194
2022-11-10 15:07:47 +01:00
- script : |-
2022-11-17 09:30:06 +01:00
SPRJ=SUSE:SLE-15-SP5:Update:BCI
2022-11-10 15:07:47 +01:00
for arch in aarch64 ppc64le s390x x86_64 ; do
2022-11-17 11:03:26 +01:00
PKG="000product:SLE_BCI-ftp-POOL-$arch"
PRJ="SUSE:Products:SLE-BCI:15-SP5:$arch"
2022-11-17 13:39:22 +01:00
curl -X POST -H "Authorization: Token $BCI_TOKEN" "https://api.suse.de/trigger/release?project=${SPRJ}&package=${PKG}&targetproject=${PRJ}&targetrepository=images&filter_source_repository=\"images\""
2022-11-10 15:07:47 +01:00
done
for arch in aarch64 ppc64le s390x x86_64 ; do
sleep 600
2022-11-17 09:30:06 +01:00
while (osc -A https://api.suse.de/ api "/build/$PRJ/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
2022-11-10 15:07:47 +01:00
echo PENDING
sleep 600
done
2022-11-17 09:30:06 +01:00
osc -A https://api.suse.de/ api "/build/$PRJ/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
2022-11-10 15:07:47 +01:00
done
2022-11-17 09:30:06 +01:00