Skip to content

Commit

Permalink
gocd: checkers.suse: Drop Marble pipelines and add SLFO checkers.
Browse files Browse the repository at this point in the history
Since the switch to Git backed sources for SL-Micro 6.0, staging
workflow does not work anymore for SUSE:ALP:Products:Marble:6.0. This
patch drops all related pipelines. Additional it adds the same checkers
for the SUSE:SLFO:Main project.
  • Loading branch information
gleidi-suse committed Jan 14, 2025
1 parent 0f73b87 commit 97c4fad
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
28 changes: 17 additions & 11 deletions gocd/checkers.suse.gocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pipelines:
- repo-checker
tasks:
- script: ./project-installcheck.py -A https://api.suse.de --debug check --store SUSE:SLE-15-SP7:GA:Staging/dashboard --no-rebuild SUSE:SLE-15-SP7:GA
SL-Micro.Project:
SUSE.SLFO.Main.Staging.Project:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
timer:
Expand All @@ -72,17 +72,19 @@ pipelines:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables:
SLFO_PROJECT: SUSE:SLFO:Main
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-repo-checker
stages:
- Run:
timeout: 30
approval: manual
jobs:
SL-Micro:
SLFO.Main:
resources:
- repo-checker
tasks:
- script: ./project-installcheck.py -A https://api.suse.de --debug check --store SUSE:ALP:Products:Marble:6.0:Staging/dashboard --no-rebuild SUSE:ALP:Products:Marble:6.0
- script: ./project-installcheck.py -A $STAGING_API --debug check --store $SLFO_PROJECT:Staging/dashboard --no-rebuild $SLFO_PROJECT:Build
SLE.Origin.Manager:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
Expand Down Expand Up @@ -135,12 +137,14 @@ pipelines:
osc -A https://api.suse.de staging -p SUSE:SLE-15-SP7:GA unselect --cleanup
osc -A https://api.suse.de staging -p SUSE:SLE-15-SP7:GA repair --cleanup
rm -rf $tempdir
SL-Micro.Staging.Bot.Regular:
SUSE.SLFO.Main.Staging.Bot.Regular:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
environment_variables:
SLFO_PROJECT: SUSE:SLFO:Main
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
git:
Expand All @@ -163,11 +167,11 @@ pipelines:
ln -s $PWD/osclib $tempdir/.osc-plugins
export HOME=$tempdir
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 rebuild
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 list --supersede
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 select --non-interactive --merge --try-strategies
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 unselect --cleanup
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 repair --cleanup
osc -A $STAGING_API staging -p $SLFO_PROJECT rebuild
osc -A $STAGING_API staging -p $SLFO_PROJECT list --supersede
osc -A $STAGING_API staging -p $SLFO_PROJECT select --non-interactive --merge --try-strategies
osc -A $STAGING_API staging -p $SLFO_PROJECT unselect --cleanup
osc -A $STAGING_API staging -p $SLFO_PROJECT repair --cleanup
rm -rf $tempdir
S15.SP7.Staging.Bot.Report:
group: SLE.Checkers
Expand All @@ -190,12 +194,14 @@ pipelines:
- staging-bot
tasks:
- script: ./staging-report.py --debug -A https://api.suse.de -p SUSE:SLE-15-SP7:GA
SL-Micro.Staging.Bot.Report:
SUSE.SLFO.Main.Staging.Bot.Report:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 */3 * ? * *
environment_variables:
SLFO_PROJECT: SUSE:SLFO:Main
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
git:
Expand All @@ -210,7 +216,7 @@ pipelines:
resources:
- staging-bot
tasks:
- script: ./staging-report.py --debug -A https://api.suse.de -p SUSE:ALP:Products:Marble:6.0
- script: ./staging-report.py --debug -A $STAGING_API -p $SLFO_PROJECT
SLE.Source.Check:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
Expand Down
28 changes: 17 additions & 11 deletions gocd/checkers.suse.gocd.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pipelines:
- repo-checker
tasks:
- script: ./project-installcheck.py -A https://api.suse.de --debug check --store SUSE:SLE-15-SP7:GA:Staging/dashboard --no-rebuild SUSE:SLE-15-SP7:GA
SL-Micro.Project:
SUSE.SLFO.Main.Staging.Project:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
timer:
Expand All @@ -72,17 +72,19 @@ pipelines:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables:
SLFO_PROJECT: SUSE:SLFO:Main
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-repo-checker
stages:
- Run:
timeout: 30
approval: manual
jobs:
SL-Micro:
SLFO.Main:
resources:
- repo-checker
tasks:
- script: ./project-installcheck.py -A https://api.suse.de --debug check --store SUSE:ALP:Products:Marble:6.0:Staging/dashboard --no-rebuild SUSE:ALP:Products:Marble:6.0
- script: ./project-installcheck.py -A $STAGING_API --debug check --store $SLFO_PROJECT:Staging/dashboard --no-rebuild $SLFO_PROJECT:Build
SLE.Origin.Manager:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
Expand Down Expand Up @@ -135,12 +137,14 @@ pipelines:
osc -A https://api.suse.de staging -p SUSE:SLE-15-SP7:GA unselect --cleanup
osc -A https://api.suse.de staging -p SUSE:SLE-15-SP7:GA repair --cleanup
rm -rf $tempdir
SL-Micro.Staging.Bot.Regular:
SUSE.SLFO.Main.Staging.Bot.Regular:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
environment_variables:
SLFO_PROJECT: SUSE:SLFO:Main
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
git:
Expand All @@ -163,11 +167,11 @@ pipelines:
ln -s $PWD/osclib $tempdir/.osc-plugins
export HOME=$tempdir

osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 rebuild
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 list --supersede
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 select --non-interactive --merge --try-strategies
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 unselect --cleanup
osc -A https://api.suse.de staging -p SUSE:ALP:Products:Marble:6.0 repair --cleanup
osc -A $STAGING_API staging -p $SLFO_PROJECT rebuild
osc -A $STAGING_API staging -p $SLFO_PROJECT list --supersede
osc -A $STAGING_API staging -p $SLFO_PROJECT select --non-interactive --merge --try-strategies
osc -A $STAGING_API staging -p $SLFO_PROJECT unselect --cleanup
osc -A $STAGING_API staging -p $SLFO_PROJECT repair --cleanup
rm -rf $tempdir
S15.SP7.Staging.Bot.Report:
group: SLE.Checkers
Expand All @@ -190,12 +194,14 @@ pipelines:
- staging-bot
tasks:
- script: ./staging-report.py --debug -A https://api.suse.de -p SUSE:SLE-15-SP7:GA
SL-Micro.Staging.Bot.Report:
SUSE.SLFO.Main.Staging.Bot.Report:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 */3 * ? * *
environment_variables:
SLFO_PROJECT: SUSE:SLFO:Main
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
git:
Expand All @@ -210,7 +216,7 @@ pipelines:
resources:
- staging-bot
tasks:
- script: ./staging-report.py --debug -A https://api.suse.de -p SUSE:ALP:Products:Marble:6.0
- script: ./staging-report.py --debug -A $STAGING_API -p $SLFO_PROJECT
SLE.Source.Check:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
Expand Down

0 comments on commit 97c4fad

Please sign in to comment.