Monitor release process
Stage will finish when all images were published
This commit is contained in:
parent
e68b5e0bce
commit
c16521dc68
@ -90,6 +90,12 @@ pipelines:
|
|||||||
osc -A https://api.suse.de release SUSE:SLE-15-SP3:GA $product_ndb -r images-ndb --target-project SUSE:SLE-15-SP3:GA:TEST --target-repository images
|
osc -A https://api.suse.de release SUSE:SLE-15-SP3:GA $product_ndb -r images-ndb --target-project SUSE:SLE-15-SP3:GA:TEST --target-repository images
|
||||||
done
|
done
|
||||||
osc -A https://api.suse.de release SUSE:SLE-15-SP3:Update:CR sles15-image
|
osc -A https://api.suse.de release SUSE:SLE-15-SP3:Update:CR sles15-image
|
||||||
|
sleep 600
|
||||||
|
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP3:GA:TEST/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
|
||||||
|
echo PENDING
|
||||||
|
sleep 600
|
||||||
|
done
|
||||||
|
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP3:GA:TEST/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||||
|
|
||||||
- Release.Images.To.Publish:
|
- Release.Images.To.Publish:
|
||||||
approval: manual
|
approval: manual
|
||||||
@ -100,7 +106,14 @@ pipelines:
|
|||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
tasks:
|
tasks:
|
||||||
- script: osc -A https://api.suse.de release SUSE:SLE-15-SP3:GA:TEST
|
- script: |-
|
||||||
|
osc -A https://api.suse.de release SUSE:SLE-15-SP3:GA:TEST
|
||||||
|
sleep 600
|
||||||
|
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP3:GA:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
|
||||||
|
echo PENDING
|
||||||
|
sleep 600
|
||||||
|
done
|
||||||
|
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP3:GA:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||||
|
|
||||||
SLE15.SP3.ImagesManual:
|
SLE15.SP3.ImagesManual:
|
||||||
group: SLE15.SP3.Target
|
group: SLE15.SP3.Target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user