From 57b0b162567127c161762661c82008fd16cdcb7e Mon Sep 17 00:00:00 2001 From: Eugenio Paolantonio Date: Fri, 25 Aug 2023 16:20:26 +0200 Subject: [PATCH] gocd: remove old LEO group Signed-off-by: Eugenio Paolantonio --- gocd/alp-stagings.gocd.yaml | 142 ------------------------------------ gocd/alp.gocd.yaml | 60 --------------- gocd/alp.gocd.yaml.erb | 36 --------- gocd/generate.sh | 2 +- 4 files changed, 1 insertion(+), 239 deletions(-) delete mode 100644 gocd/alp-stagings.gocd.yaml delete mode 100644 gocd/alp.gocd.yaml delete mode 100644 gocd/alp.gocd.yaml.erb diff --git a/gocd/alp-stagings.gocd.yaml b/gocd/alp-stagings.gocd.yaml deleted file mode 100644 index 7a05d2e2..00000000 --- a/gocd/alp-stagings.gocd.yaml +++ /dev/null @@ -1,142 +0,0 @@ ---- -format_version: 3 -pipelines: - ALP.Stagings.RelPkgs: - environment_variables: - OSC_CONFIG: /home/go/config/oscrc-staging-bot - group: LEO - lock_behavior: unlockWhenFinished - timer: - spec: 0 0 * ? * * - only_on_changes: false - materials: - scripts: - git: https://github.com/openSUSE/openSUSE-release-tools.git - stages: - - Generate.Release.Package: - approval: manual - jobs: - ALP.Staging.A: - resources: - - repo-checker - tasks: - - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve --staging SUSE:ALP:Staging:A --only-release-packages --force - ALP.Staging.B: - resources: - - repo-checker - tasks: - - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve --staging SUSE:ALP:Staging:B --only-release-packages --force - - ALP.Staging.A: - environment_variables: - STAGING_PROJECT: SUSE:ALP:Staging:A - STAGING_API: https://api.opensuse.org - OSC_CONFIG: /home/go/config/oscrc-staging-bot - group: LEO - lock_behavior: unlockWhenFinished - materials: - scripts: - auto_update: true - git: https://github.com/openSUSE/openSUSE-release-tools.git - whitelist: - - DO_NOT_TRIGGER - destination: scripts - stages: - - Checks: - jobs: - Check.Build.Succeeds: - resources: - - staging-bot - tasks: - - script: |- - export PYTHONPATH=$PWD/scripts - cd scripts/gocd - ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending - ./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard - Repo.Checker: - environment_variables: - OSC_CONFIG: /home/go/config/oscrc-staging-bot - resources: - - repo-checker - tasks: - - script: |- - ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP -s $STAGING_PROJECT - - - Update.000product: - resources: - - repo-checker - tasks: - - script: |- - export PYTHONPATH=$PWD/scripts - cd scripts/gocd - - if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success - else - ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 - fi - - - Enable.images.repo: - resources: - - staging-bot - tasks: - - script: |- - osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" - - ALP.Staging.B: - environment_variables: - STAGING_PROJECT: SUSE:ALP:Staging:B - STAGING_API: https://api.opensuse.org - OSC_CONFIG: /home/go/config/oscrc-staging-bot - group: LEO - lock_behavior: unlockWhenFinished - materials: - scripts: - auto_update: true - git: https://github.com/openSUSE/openSUSE-release-tools.git - whitelist: - - DO_NOT_TRIGGER - destination: scripts - stages: - - Checks: - jobs: - Check.Build.Succeeds: - resources: - - staging-bot - tasks: - - script: |- - export PYTHONPATH=$PWD/scripts - cd scripts/gocd - ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending - ./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard - Repo.Checker: - environment_variables: - OSC_CONFIG: /home/go/config/oscrc-staging-bot - resources: - - repo-checker - tasks: - - script: |- - ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP -s $STAGING_PROJECT - - - Update.000product: - resources: - - repo-checker - tasks: - - script: |- - export PYTHONPATH=$PWD/scripts - cd scripts/gocd - - if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success - else - ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 - fi - - - Enable.images.repo: - resources: - - staging-bot - tasks: - - script: |- - osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" diff --git a/gocd/alp.gocd.yaml b/gocd/alp.gocd.yaml deleted file mode 100644 index be3598a5..00000000 --- a/gocd/alp.gocd.yaml +++ /dev/null @@ -1,60 +0,0 @@ -format_version: 3 -pipelines: - Pkglistgen.ALP: - group: LEO - 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: - SUSE_ALP_target: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP -s target --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP -s target - SUSE_ALP_PowerPC: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:PowerPC -s target --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:PowerPC -s target - SUSE_ALP_zSystems: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:zSystems -s target --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:zSystems -s target - SUSE_ALP_RISCV: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:RISCV -s target --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:RISCV -s target - SUSE_ALP_Products_Micro_0.1: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:Products:Micro:0.1 -s target --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:Products:Micro:0.1 -s target - SUSE_ALP_Products_Bedrock_0.1: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:Products:Bedrock:0.1 -s target --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p SUSE:ALP:Products:Bedrock:0.1 -s target diff --git a/gocd/alp.gocd.yaml.erb b/gocd/alp.gocd.yaml.erb deleted file mode 100644 index ac820a45..00000000 --- a/gocd/alp.gocd.yaml.erb +++ /dev/null @@ -1,36 +0,0 @@ -format_version: 3 -pipelines: - Pkglistgen.ALP: - group: LEO - 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: -<% ['SUSE:ALP/target', 'SUSE:ALP:PowerPC', 'SUSE:ALP:zSystems', 'SUSE:ALP:RISCV', 'SUSE:ALP:Products:Micro:0.1', 'SUSE:ALP:Products:Bedrock:0.1'].each do |project| - project=project.split('/') - name=project[0].gsub(':', '_') - if project.size > 1 - options=" -s #{project[1]}" - name = name + "_#{project[1]}" - else - options=" -s target" - end - -%> - <%= name %>: - timeout: 60 - resources: - - repo-checker - tasks: - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %> --only-release-packages --force - - script: python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %> -<% end -%> diff --git a/gocd/generate.sh b/gocd/generate.sh index 0cebd198..0e1b85b1 100755 --- a/gocd/generate.sh +++ b/gocd/generate.sh @@ -14,7 +14,7 @@ done grep group: *.yaml | cut -d: -f3 | sort -u | while read group; do case $group in - BCI|Factory|Leap|Admin|LEO|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers|ALP.Target) + BCI|Factory|Leap|Admin|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers|ALP.Target) ;; *) echo "Do not create new groups without being admin and knowing the consequences - found $group"