Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gocd: rename alp micro to Dolomite #2991

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions gocd/alpmicro.target.gocd.yaml → gocd/dolomite.target.gocd.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
format_version: 3
pipelines:
ALP.Micro.Images:
Dolomite.Images:
group: ALP.Target
lock_behavior: unlockWhenFinished
materials:
repos:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
whitelist:
- SUSE:ALP:Products:Micro:1.0_-_images.yaml
- SUSE:ALP:Products:Dolomite:1.0_-_images.yaml
destination: repos
scripts:
auto_update: true
Expand All @@ -26,7 +26,7 @@ pipelines:
- script: |
export PYTHONPATH=scripts
set -e
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Micro:1.0 -r images
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Dolomite:1.0 -r images

- Release.Images.To.Test:
approval: manual
Expand All @@ -39,19 +39,19 @@ pipelines:
tasks:
- script: |-
set -e
PRODUCTS=$(osc -A https://api.suse.de ls SUSE:ALP:Products:Micro:1.0 | grep "^ALP-Micro" | grep -v release | grep -v : ||:)
PRODUCTS=$(osc -A https://api.suse.de ls SUSE:ALP:Products:Dolomite:1.0 | grep "^Dolomite" | grep -v release | grep -v : ||:)
if [ -z "${PRODUCTS}" ]; then
echo "[WARNNING] There is no image to be released"
fi
for product in 000product $PRODUCTS; do
osc -A https://api.suse.de release SUSE:ALP:Products:Micro:1.0 $product
osc -A https://api.suse.de release SUSE:ALP:Products:Dolomite:1.0 $product
done
sleep 600
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Micro:1.0:ToTest/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0:ToTest/_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:ALP:Products:Micro:1.0:ToTest/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0:ToTest/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED

- Release.Images.To.Publish:
approval: manual
Expand All @@ -63,28 +63,28 @@ pipelines:
- staging-bot
tasks:
- script: |-
osc -A https://api.suse.de release SUSE:ALP:Products:Micro:1.0:ToTest
osc -A https://api.suse.de release SUSE:ALP:Products:Dolomite:1.0:ToTest
sleep 600
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Micro:1.0:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
echo PENDING
sleep 600
done
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Micro:1.0: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:ALP:Products:Micro:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0: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:ALP:Products:Dolomite:1.0: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:ALP:Products:Micro:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED

ALP.Micro.Images.NEW:
Dolomite.Images.NEW:
group: ALP.Target
lock_behavior: unlockWhenFinished
materials:
repos:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
whitelist:
- SUSE:ALP:Products:Micro:1.0_-_images.yaml
- SUSE:ALP:Products:Dolomite:1.0_-_images.yaml
destination: repos
scripts:
auto_update: true
Expand All @@ -102,8 +102,8 @@ pipelines:
- script: |
export PYTHONPATH=scripts
set -e
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Micro:1.0 -r containerfile
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Micro:1.0 -r images
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Dolomite:1.0 -r containerfile
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Dolomite:1.0 -r images

- Release.Images.To.Test:
approval: manual
Expand All @@ -117,7 +117,7 @@ pipelines:
- staging-bot
tasks:
- script: |-
sle-prjmgr-tools --jira-instance $JIRA_INSTANCE --osc-config $OSC_CONFIG ibs_to_jira --jira-pat $JIRA_PAT -p SUSE:ALP:Products:Micro:1.0
sle-prjmgr-tools --jira-instance $JIRA_INSTANCE --osc-config $OSC_CONFIG ibs_to_jira --jira-pat $JIRA_PAT -p SUSE:ALP:Products:Dolomite:1.0

- Release.Images.To.Publish:
approval: manual
Expand All @@ -129,28 +129,28 @@ pipelines:
- staging-bot
tasks:
- script: |-
osc -A https://api.suse.de release SUSE:ALP:Products:Micro:1.0:ToTest
osc -A https://api.suse.de release SUSE:ALP:Products:Dolomite:1.0:ToTest
sleep 600
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Micro:1.0:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
echo PENDING
sleep 600
done
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Micro:1.0: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:ALP:Products:Micro:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0: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:ALP:Products:Dolomite:1.0: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:ALP:Products:Micro:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Dolomite:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED

ALP.Micro.ImagesManual:
Dolomite.ImagesManual:
group: ALP.Target
lock_behavior: unlockWhenFinished
materials:
repos:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
whitelist:
- SUSE:ALP:Products:Micro:1.0_-_images.yaml
- SUSE:ALP:Products:Dolomite:1.0_-_images.yaml
destination: repos
scripts:
auto_update: true
Expand All @@ -172,7 +172,7 @@ pipelines:
tasks:
- script: |
export PYTHONPATH=scripts
while (! ./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Micro:1.0 -r images); do
while (! ./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Dolomite:1.0 -r images); do
sleep 300
done
Release.To.Test:
Expand All @@ -183,9 +183,9 @@ pipelines:
tasks:
- script: |-
set -e
PRODUCTS=$(osc -A https://api.suse.de ls SUSE:ALP:Products:Micro:1.0 | grep "^ALP-Micro" | grep -v release)
PRODUCTS=$(osc -A https://api.suse.de ls SUSE:ALP:Products:Dolomite:1.0 | grep "^Dolomite" | grep -v release)
for product in 000product $PRODUCTS; do
osc -A https://api.suse.de release SUSE:ALP:Products:Micro:1.0 $product
osc -A https://api.suse.de release SUSE:ALP:Products:Dolomite:1.0 $product
done

- Release.Images.To.Publish:
Expand All @@ -197,12 +197,12 @@ pipelines:
resources:
- staging-bot
tasks:
- script: osc -A https://api.suse.de release SUSE:ALP:Products:Micro:1.0:ToTest
- script: osc -A https://api.suse.de release SUSE:ALP:Products:Dolomite:1.0:ToTest

ALP.Micro.ReleaseScc:
Dolomite.ReleaseScc:
group: ALP.Target
parameters:
product: alp-micro-1.0
product: dolomite-1.0
target: MyTarget
build: "0.0"
materials:
Expand Down