From 32eac544702fee64ffdddc2ebdcdcbc0fa696d09 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 2 Jan 2023 15:34:10 +0100 Subject: [PATCH] gocd: Apply editorconfig standards --- gocd/alp-stagings.gocd.yaml | 24 +- gocd/bci.gocd.yaml | 18 +- gocd/bci.gocd.yaml.erb | 6 +- gocd/checkers.opensuse.gocd.yaml | 26 +- gocd/checkers.suse.gocd.yaml | 46 +-- gocd/checkers.suse.gocd.yaml.erb | 46 +-- gocd/daily-cleanup.gocd.yaml | 16 +- gocd/dashboard.generator.gocd.yaml | 8 +- gocd/generate.sh | 14 +- gocd/microos-stagings.gocd.yaml | 36 +- gocd/microos-stagings.gocd.yaml.erb | 18 +- gocd/pkglistgen.opensuse.gocd.yaml | 14 +- gocd/pkglistgen.opensuse.gocd.yaml.erb | 4 +- gocd/pkglistgen_staging.gocd.yaml | 480 ++++++++++++------------- gocd/pkglistgen_staging.gocd.yaml.erb | 30 +- gocd/sle15-stagings.gocd.yaml | 286 +++++++-------- gocd/sle15-stagings.gocd.yaml.erb | 26 +- gocd/staging.bot.gocd.yaml | 96 ++--- gocd/staging.bot.gocd.yaml.erb | 24 +- gocd/vagrant-publisher.gocd.yaml | 2 +- gocd/vagrant-publisher.gocd.yaml.erb | 2 +- 21 files changed, 608 insertions(+), 614 deletions(-) diff --git a/gocd/alp-stagings.gocd.yaml b/gocd/alp-stagings.gocd.yaml index 8b263ffc..7a05d2e2 100644 --- a/gocd/alp-stagings.gocd.yaml +++ b/gocd/alp-stagings.gocd.yaml @@ -61,7 +61,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -78,11 +78,11 @@ pipelines: 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" + 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: @@ -118,7 +118,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -135,8 +135,8 @@ pipelines: 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" + 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/bci.gocd.yaml b/gocd/bci.gocd.yaml index c51cf25a..6aab1580 100644 --- a/gocd/bci.gocd.yaml +++ b/gocd/bci.gocd.yaml @@ -114,9 +114,9 @@ pipelines: - script: |- SPRJ=SUSE:SLE-15-SP3:Update:BCI for arch in aarch64 ppc64le s390x x86_64 ; do - PKG="000product:SLE_BCI-ftp-POOL-$arch" - PRJ="SUSE:Products:SLE-BCI:15-SP3:$arch" - 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" + PKG="000product:SLE_BCI-ftp-POOL-$arch" + PRJ="SUSE:Products:SLE-BCI:15-SP3:$arch" + 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" done for arch in aarch64 ppc64le s390x x86_64 ; do sleep 600 @@ -199,9 +199,9 @@ pipelines: - script: |- SPRJ=SUSE:SLE-15-SP4:Update:BCI for arch in aarch64 ppc64le s390x x86_64 ; do - PKG="000product:SLE_BCI-ftp-POOL-$arch" - PRJ="SUSE:Products:SLE-BCI:15-SP4:$arch" - 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" + PKG="000product:SLE_BCI-ftp-POOL-$arch" + PRJ="SUSE:Products:SLE-BCI:15-SP4:$arch" + 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" done for arch in aarch64 ppc64le s390x x86_64 ; do sleep 600 @@ -284,9 +284,9 @@ pipelines: - script: |- SPRJ=SUSE:SLE-15-SP5:Update:BCI for arch in aarch64 ppc64le s390x x86_64 ; do - PKG="000product:SLE_BCI-ftp-POOL-$arch" - PRJ="SUSE:Products:SLE-BCI:15-SP5:$arch" - 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" + PKG="000product:SLE_BCI-ftp-POOL-$arch" + PRJ="SUSE:Products:SLE-BCI:15-SP5:$arch" + 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" done for arch in aarch64 ppc64le s390x x86_64 ; do sleep 600 diff --git a/gocd/bci.gocd.yaml.erb b/gocd/bci.gocd.yaml.erb index 00219c80..715bdbe6 100644 --- a/gocd/bci.gocd.yaml.erb +++ b/gocd/bci.gocd.yaml.erb @@ -114,9 +114,9 @@ pipelines: - script: |- SPRJ=SUSE:SLE-15-<%= sp %>:Update:BCI for arch in aarch64 ppc64le s390x x86_64 ; do - PKG="000product:SLE_BCI-ftp-POOL-$arch" - PRJ="SUSE:Products:SLE-BCI:15-<%= sp %>:$arch" - 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" + PKG="000product:SLE_BCI-ftp-POOL-$arch" + PRJ="SUSE:Products:SLE-BCI:15-<%= sp %>:$arch" + 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" done for arch in aarch64 ppc64le s390x x86_64 ; do sleep 600 diff --git a/gocd/checkers.opensuse.gocd.yaml b/gocd/checkers.opensuse.gocd.yaml index a2d2c7c5..b5092ace 100644 --- a/gocd/checkers.opensuse.gocd.yaml +++ b/gocd/checkers.opensuse.gocd.yaml @@ -105,22 +105,22 @@ pipelines: group: openSUSE.Checkers lock_behavior: unlockWhenFinished timer: - spec: 0 */3 * ? * * + spec: 0 */3 * ? * * environment_variables: - OSC_CONFIG: /home/go/config/oscrc-staging-bot + OSC_CONFIG: /home/go/config/oscrc-staging-bot materials: - git: - git: https://github.com/openSUSE/openSUSE-release-tools.git + git: + git: https://github.com/openSUSE/openSUSE-release-tools.git stages: - Run: - approval: - type: manual - jobs: - Run: - resources: - - staging-bot - tasks: - - script: ./staging-report.py --debug -A https://api.opensuse.org -p openSUSE:Factory + approval: + type: manual + jobs: + Run: + resources: + - staging-bot + tasks: + - script: ./staging-report.py --debug -A https://api.opensuse.org -p openSUSE:Factory OS.Origin.Manager: group: openSUSE.Checkers lock_behavior: unlockWhenFinished @@ -157,7 +157,7 @@ pipelines: - staging-bot tasks: - script: |- - ./openqa-maintenance.py --group qam-openqa --review-mode=accept-onpass --debug --openqa https://openqa.opensuse.org --apiurl https://api.opensuse.org review + ./openqa-maintenance.py --group qam-openqa --review-mode=accept-onpass --debug --openqa https://openqa.opensuse.org --apiurl https://api.opensuse.org review openSUSE.Devel.Reminder: group: openSUSE.Checkers lock_behavior: unlockWhenFinished diff --git a/gocd/checkers.suse.gocd.yaml b/gocd/checkers.suse.gocd.yaml index 01fa384a..16018efa 100644 --- a/gocd/checkers.suse.gocd.yaml +++ b/gocd/checkers.suse.gocd.yaml @@ -123,18 +123,18 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA rebuild - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA list --supersede - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA unselect --cleanup - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA repair --cleanup - rm -rf $tempdir + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA rebuild + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA list --supersede + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA unselect --cleanup + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA repair --cleanup + rm -rf $tempdir SLE-Micro.Staging.Bot.Regular: group: SLE.Checkers lock_behavior: unlockWhenFinished @@ -156,19 +156,19 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 rebuild - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 list --supersede - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 select --non-interactive --merge --try-strategies - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 unselect --cleanup - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 repair --cleanup - rm -rf $tempdir + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 rebuild + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 list --supersede + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 select --non-interactive --merge --try-strategies + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 unselect --cleanup + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 repair --cleanup + rm -rf $tempdir S15.SP5.Staging.Bot.Report: group: SLE.Checkers lock_behavior: unlockWhenFinished diff --git a/gocd/checkers.suse.gocd.yaml.erb b/gocd/checkers.suse.gocd.yaml.erb index 9ae1f5a2..3e18b129 100644 --- a/gocd/checkers.suse.gocd.yaml.erb +++ b/gocd/checkers.suse.gocd.yaml.erb @@ -123,18 +123,18 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA rebuild - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA list --supersede - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA unselect --cleanup - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA repair --cleanup - rm -rf $tempdir + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA rebuild + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA list --supersede + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA unselect --cleanup + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP5:GA repair --cleanup + rm -rf $tempdir SLE-Micro.Staging.Bot.Regular: group: SLE.Checkers lock_behavior: unlockWhenFinished @@ -156,19 +156,19 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 rebuild - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 list --supersede - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 select --non-interactive --merge --try-strategies - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 unselect --cleanup - osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 repair --cleanup - rm -rf $tempdir + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 rebuild + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 list --supersede + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 select --non-interactive --merge --try-strategies + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 unselect --cleanup + osc -A https://api.suse.de staging -p SUSE:SLE-15-SP4:Update:Products:Micro54 repair --cleanup + rm -rf $tempdir S15.SP5.Staging.Bot.Report: group: SLE.Checkers lock_behavior: unlockWhenFinished diff --git a/gocd/daily-cleanup.gocd.yaml b/gocd/daily-cleanup.gocd.yaml index 7141a724..6c6cb90a 100644 --- a/gocd/daily-cleanup.gocd.yaml +++ b/gocd/daily-cleanup.gocd.yaml @@ -18,12 +18,12 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.opensuse.org staging -p openSUSE:Factory unignore --cleanup - rm -r $tempdir + osc -A https://api.opensuse.org staging -p openSUSE:Factory unignore --cleanup + rm -r $tempdir diff --git a/gocd/dashboard.generator.gocd.yaml b/gocd/dashboard.generator.gocd.yaml index 6784ecdb..e5accec2 100644 --- a/gocd/dashboard.generator.gocd.yaml +++ b/gocd/dashboard.generator.gocd.yaml @@ -19,7 +19,7 @@ pipelines: - staging-bot tasks: - script: |- - set -e - PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Factory > dashboard/output/index.html - PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Leap > dashboard/output/leap.html - rsync -av dashboard/output/ rsync://coolo@195.135.221.140:11873/factory-dashboard.opensuse.org/ + set -e + PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Factory > dashboard/output/index.html + PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Leap > dashboard/output/leap.html + rsync -av dashboard/output/ rsync://coolo@195.135.221.140:11873/factory-dashboard.opensuse.org/ diff --git a/gocd/generate.sh b/gocd/generate.sh index 698cfff6..4c7b0d3e 100755 --- a/gocd/generate.sh +++ b/gocd/generate.sh @@ -13,13 +13,13 @@ for file in *.erb; do 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) - ;; - *) - echo "Do not create new groups without being admin and knowing the consequences - found $group" - exit 1 - esac + case $group in + BCI|Factory|Leap|Admin|LEO|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers) + ;; + *) + echo "Do not create new groups without being admin and knowing the consequences - found $group" + exit 1 + esac done for file in *.gocd.yaml; do diff --git a/gocd/microos-stagings.gocd.yaml b/gocd/microos-stagings.gocd.yaml index 1d377bcd..8c8a4f83 100644 --- a/gocd/microos-stagings.gocd.yaml +++ b/gocd/microos-stagings.gocd.yaml @@ -21,15 +21,15 @@ pipelines: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP4:Update:Products:Micro54:Staging:A - --only-release-packages --force + --staging SUSE:SLE-15-SP4:Update:Products:Micro54:Staging:A + --only-release-packages --force SLE-Micro.Staging.B: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP4:Update:Products:Micro54:Staging:B - --only-release-packages --force + --staging SUSE:SLE-15-SP4:Update:Products:Micro54:Staging:B + --only-release-packages --force SLE-Micro.Staging.A: environment_variables: @@ -69,9 +69,7 @@ pipelines: resources: - repo-checker tasks: - - script: |- - ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP4:Update:Products:Micro54 -s $STAGING_PROJECT - + - script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP4:Update:Products:Micro54 -s $STAGING_PROJECT - Update.000product: resources: - repo-checker @@ -88,11 +86,11 @@ pipelines: 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" + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" SLE-Micro.Staging.B: environment_variables: @@ -132,9 +130,7 @@ pipelines: resources: - repo-checker tasks: - - script: |- - ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP4:Update:Products:Micro54 -s $STAGING_PROJECT - + - script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP4:Update:Products:Micro54 -s $STAGING_PROJECT - Update.000product: resources: - repo-checker @@ -151,8 +147,8 @@ pipelines: 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" + 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/microos-stagings.gocd.yaml.erb b/gocd/microos-stagings.gocd.yaml.erb index 4798a8c2..77d31cc9 100644 --- a/gocd/microos-stagings.gocd.yaml.erb +++ b/gocd/microos-stagings.gocd.yaml.erb @@ -23,8 +23,8 @@ pipelines: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP4:Update:Products:Micro54:Staging:<%= letter %> - --only-release-packages --force + --staging SUSE:SLE-15-SP4:Update:Products:Micro54:Staging:<%= letter %> + --only-release-packages --force <% end -%> <% stagings.each do |letter| %> SLE-Micro.Staging.<%= letter %>: @@ -65,9 +65,7 @@ pipelines: resources: - repo-checker tasks: - - script: |- - ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP4:Update:Products:Micro54 -s $STAGING_PROJECT - + - script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP4:Update:Products:Micro54 -s $STAGING_PROJECT - Update.000product: resources: - repo-checker @@ -84,9 +82,9 @@ pipelines: 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" + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" <% end -%> diff --git a/gocd/pkglistgen.opensuse.gocd.yaml b/gocd/pkglistgen.opensuse.gocd.yaml index 60442643..ef4f5463 100644 --- a/gocd/pkglistgen.opensuse.gocd.yaml +++ b/gocd/pkglistgen.opensuse.gocd.yaml @@ -92,22 +92,22 @@ pipelines: resources: - repo-checker tasks: - - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory + - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory openSUSE_Factory_ARM: resources: - repo-checker tasks: - - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:ARM + - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:ARM openSUSE_Factory_PowerPC: resources: - repo-checker tasks: - - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:PowerPC + - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:PowerPC openSUSE_Factory_RISCV: resources: - repo-checker tasks: - - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:RISCV + - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:RISCV Pkglistgen.openSUSE_Leap_15.5: group: Leap lock_behavior: unlockWhenFinished @@ -194,7 +194,7 @@ pipelines: resources: - repo-checker tasks: - - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.5 + - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.5 Update.Repos.Leap.openSUSE_Leap_15.4_Images: group: Leap lock_behavior: unlockWhenFinished @@ -215,7 +215,7 @@ pipelines: resources: - repo-checker tasks: - - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.4:Images + - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.4:Images Update.Repos.Leap.openSUSE_Leap_15.3_Update_Respin: group: Leap lock_behavior: unlockWhenFinished @@ -236,4 +236,4 @@ pipelines: resources: - repo-checker tasks: - - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.3:Update:Respin + - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.3:Update:Respin diff --git a/gocd/pkglistgen.opensuse.gocd.yaml.erb b/gocd/pkglistgen.opensuse.gocd.yaml.erb index eccabedf..d0b3b4b3 100644 --- a/gocd/pkglistgen.opensuse.gocd.yaml.erb +++ b/gocd/pkglistgen.opensuse.gocd.yaml.erb @@ -55,7 +55,7 @@ pipelines: resources: - repo-checker tasks: - - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %> + - script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %> <% end -%> Pkglistgen.openSUSE_Leap_15.5: group: Leap @@ -171,5 +171,5 @@ pipelines: resources: - repo-checker tasks: - - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %> + - script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %> <% end -%> diff --git a/gocd/pkglistgen_staging.gocd.yaml b/gocd/pkglistgen_staging.gocd.yaml index a269c704..5f38ff4e 100644 --- a/gocd/pkglistgen_staging.gocd.yaml +++ b/gocd/pkglistgen_staging.gocd.yaml @@ -20,113 +20,113 @@ pipelines: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:A - --only-release-packages --force + --staging openSUSE:Factory:Staging:A + --only-release-packages --force "Staging.B": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:B - --only-release-packages --force + --staging openSUSE:Factory:Staging:B + --only-release-packages --force "Staging.C": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:C - --only-release-packages --force + --staging openSUSE:Factory:Staging:C + --only-release-packages --force "Staging.D": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:D - --only-release-packages --force + --staging openSUSE:Factory:Staging:D + --only-release-packages --force "Staging.E": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:E - --only-release-packages --force + --staging openSUSE:Factory:Staging:E + --only-release-packages --force "Staging.F": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:F - --only-release-packages --force + --staging openSUSE:Factory:Staging:F + --only-release-packages --force "Staging.G": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:G - --only-release-packages --force + --staging openSUSE:Factory:Staging:G + --only-release-packages --force "Staging.H": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:H - --only-release-packages --force + --staging openSUSE:Factory:Staging:H + --only-release-packages --force "Staging.I": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:I - --only-release-packages --force + --staging openSUSE:Factory:Staging:I + --only-release-packages --force "Staging.J": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:J - --only-release-packages --force + --staging openSUSE:Factory:Staging:J + --only-release-packages --force "Staging.K": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:K - --only-release-packages --force + --staging openSUSE:Factory:Staging:K + --only-release-packages --force "Staging.L": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:L - --only-release-packages --force + --staging openSUSE:Factory:Staging:L + --only-release-packages --force "Staging.M": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:M - --only-release-packages --force + --staging openSUSE:Factory:Staging:M + --only-release-packages --force "Staging.N": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:N - --only-release-packages --force + --staging openSUSE:Factory:Staging:N + --only-release-packages --force "Staging.O": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:O - --only-release-packages --force + --staging openSUSE:Factory:Staging:O + --only-release-packages --force "Staging.Gcc7": resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:Gcc7 - --only-release-packages --force + --staging openSUSE:Factory:Staging:Gcc7 + --only-release-packages --force "Factory.Staging.A": environment_variables: @@ -175,23 +175,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.B": environment_variables: @@ -240,23 +240,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.C": environment_variables: @@ -305,23 +305,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.D": environment_variables: @@ -370,23 +370,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.E": environment_variables: @@ -435,23 +435,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.F": environment_variables: @@ -500,23 +500,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.G": environment_variables: @@ -565,23 +565,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.H": environment_variables: @@ -630,23 +630,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.I": environment_variables: @@ -695,23 +695,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.J": environment_variables: @@ -760,23 +760,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.K": environment_variables: @@ -825,23 +825,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.L": environment_variables: @@ -890,23 +890,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.M": environment_variables: @@ -955,23 +955,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.N": environment_variables: @@ -1020,23 +1020,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.O": environment_variables: @@ -1085,23 +1085,23 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success "Factory.Staging.Gcc7": environment_variables: @@ -1150,21 +1150,21 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success diff --git a/gocd/pkglistgen_staging.gocd.yaml.erb b/gocd/pkglistgen_staging.gocd.yaml.erb index 88d6a6b6..09c4a16a 100644 --- a/gocd/pkglistgen_staging.gocd.yaml.erb +++ b/gocd/pkglistgen_staging.gocd.yaml.erb @@ -22,8 +22,8 @@ pipelines: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve - --staging openSUSE:Factory:Staging:<%= letter %> - --only-release-packages --force + --staging openSUSE:Factory:Staging:<%= letter %> + --only-release-packages --force <% end -%> <% factory_stagings.each do |letter| %> "Factory.Staging.<%= letter %>": @@ -73,21 +73,21 @@ pipelines: - script: |- export PYTHONPATH=scripts if ./scripts/pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success else - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure - exit 1 + ./scripts/gocd/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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success <% end %> diff --git a/gocd/sle15-stagings.gocd.yaml b/gocd/sle15-stagings.gocd.yaml index fd3d24cd..a6fd9385 100644 --- a/gocd/sle15-stagings.gocd.yaml +++ b/gocd/sle15-stagings.gocd.yaml @@ -21,78 +21,78 @@ pipelines: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:A - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:A + --only-release-packages --force SLE.15.SP5.Staging.B: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:B - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:B + --only-release-packages --force SLE.15.SP5.Staging.C: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:C - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:C + --only-release-packages --force SLE.15.SP5.Staging.D: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:D - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:D + --only-release-packages --force SLE.15.SP5.Staging.E: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:E - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:E + --only-release-packages --force SLE.15.SP5.Staging.F: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:F - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:F + --only-release-packages --force SLE.15.SP5.Staging.G: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:G - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:G + --only-release-packages --force SLE.15.SP5.Staging.H: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:H - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:H + --only-release-packages --force SLE.15.SP5.Staging.S: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:S - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:S + --only-release-packages --force SLE.15.SP5.Staging.V: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:V - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:V + --only-release-packages --force SLE.15.SP5.Staging.Y: resources: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:Y - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:Y + --only-release-packages --force SLE15.SP5.Staging.A: environment_variables: @@ -134,7 +134,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -151,16 +151,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.B: environment_variables: @@ -202,7 +202,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -219,16 +219,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.C: environment_variables: @@ -270,7 +270,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -287,16 +287,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.D: environment_variables: @@ -338,7 +338,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -355,16 +355,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.E: environment_variables: @@ -406,7 +406,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -423,16 +423,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.F: environment_variables: @@ -474,7 +474,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -491,16 +491,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.G: environment_variables: @@ -542,7 +542,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -559,16 +559,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.H: environment_variables: @@ -610,7 +610,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -627,16 +627,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.S: environment_variables: @@ -678,7 +678,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -695,16 +695,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.V: environment_variables: @@ -746,7 +746,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -763,16 +763,16 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success SLE15.SP5.Staging.Y: environment_variables: @@ -814,7 +814,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -831,13 +831,13 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success diff --git a/gocd/sle15-stagings.gocd.yaml.erb b/gocd/sle15-stagings.gocd.yaml.erb index 2aedca1c..90404065 100644 --- a/gocd/sle15-stagings.gocd.yaml.erb +++ b/gocd/sle15-stagings.gocd.yaml.erb @@ -23,8 +23,8 @@ pipelines: - repo-checker tasks: - script: ./pkglistgen.py -A https://api.suse.de update_and_solve - --staging SUSE:SLE-15-SP5:GA:Staging:<%= letter %> - --only-release-packages --force + --staging SUSE:SLE-15-SP5:GA:Staging:<%= letter %> + --only-release-packages --force <% end -%> <% stagings.each do |letter| %> SLE15.SP5.Staging.<%= letter %>: @@ -67,7 +67,7 @@ pipelines: tasks: - script: |- ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP5:GA -s $STAGING_PROJECT - + - Update.000product: resources: - repo-checker @@ -84,14 +84,14 @@ pipelines: 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" - export PYTHONPATH=$PWD/scripts - while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do - sleep 60 - done - ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success + resources: + - staging-bot + tasks: + - script: |- + osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build" + export PYTHONPATH=$PWD/scripts + while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do + sleep 60 + done + ./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success <% end -%> diff --git a/gocd/staging.bot.gocd.yaml b/gocd/staging.bot.gocd.yaml index 18fefc7d..8ac71bdd 100644 --- a/gocd/staging.bot.gocd.yaml +++ b/gocd/staging.bot.gocd.yaml @@ -44,19 +44,19 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.opensuse.org staging -p openSUSE:Factory rebuild - osc -A https://api.opensuse.org staging -p openSUSE:Factory list --supersede - osc -A https://api.opensuse.org staging -p openSUSE:Factory adi - osc -A https://api.opensuse.org staging -p openSUSE:Factory unselect --cleanup - osc -A https://api.opensuse.org staging -p openSUSE:Factory repair --cleanup - rm -rf $tempdir + osc -A https://api.opensuse.org staging -p openSUSE:Factory rebuild + osc -A https://api.opensuse.org staging -p openSUSE:Factory list --supersede + osc -A https://api.opensuse.org staging -p openSUSE:Factory adi + osc -A https://api.opensuse.org staging -p openSUSE:Factory unselect --cleanup + osc -A https://api.opensuse.org staging -p openSUSE:Factory repair --cleanup + rm -rf $tempdir AdiChecker.Factory.NonFree: group: openSUSE.Checkers lock_behavior: unlockWhenFinished @@ -101,19 +101,19 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree rebuild - osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree list --supersede - osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree adi - osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree unselect --cleanup - osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree repair --cleanup - rm -rf $tempdir + osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree rebuild + osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree list --supersede + osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree adi + osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree unselect --cleanup + osc -A https://api.opensuse.org staging -p openSUSE:Factory:NonFree repair --cleanup + rm -rf $tempdir AdiChecker.Backports.SLE-15-SP5: group: openSUSE.Checkers lock_behavior: unlockWhenFinished @@ -158,19 +158,19 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 rebuild - osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 list --supersede - osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 adi - osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 unselect --cleanup - osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 repair --cleanup - rm -rf $tempdir + osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 rebuild + osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 list --supersede + osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 adi + osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 unselect --cleanup + osc -A https://api.opensuse.org staging -p openSUSE:Backports:SLE-15-SP5 repair --cleanup + rm -rf $tempdir AdiChecker.Leap.15.5: group: openSUSE.Checkers lock_behavior: unlockWhenFinished @@ -215,16 +215,16 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 rebuild - osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 list --supersede - osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 adi - osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 unselect --cleanup - osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 repair --cleanup - rm -rf $tempdir + osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 rebuild + osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 list --supersede + osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 adi + osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 unselect --cleanup + osc -A https://api.opensuse.org staging -p openSUSE:Leap:15.5 repair --cleanup + rm -rf $tempdir diff --git a/gocd/staging.bot.gocd.yaml.erb b/gocd/staging.bot.gocd.yaml.erb index aabc500e..bfa6ca3b 100644 --- a/gocd/staging.bot.gocd.yaml.erb +++ b/gocd/staging.bot.gocd.yaml.erb @@ -46,17 +46,17 @@ pipelines: - staging-bot tasks: - script: |- - set -e - tempdir=$(mktemp -d) - mkdir -p $tempdir/.osc-plugins - ln -s $PWD/osc-staging.py $tempdir/.osc-plugins - ln -s $PWD/osclib $tempdir/.osc-plugins - export HOME=$tempdir + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir - osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> rebuild - osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> list --supersede - osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> adi - osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> unselect --cleanup - osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> repair --cleanup - rm -rf $tempdir + osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> rebuild + osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> list --supersede + osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> adi + osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> unselect --cleanup + osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> repair --cleanup + rm -rf $tempdir <% end -%> diff --git a/gocd/vagrant-publisher.gocd.yaml b/gocd/vagrant-publisher.gocd.yaml index 0c9adf78..17746c20 100644 --- a/gocd/vagrant-publisher.gocd.yaml +++ b/gocd/vagrant-publisher.gocd.yaml @@ -74,4 +74,4 @@ pipelines: - staging-bot tasks: - script: | - ruby obs-to-vagrantcloud.rb --url https://download.opensuse.org/distribution/leap/15.4/appliances/boxes/Leap-15.4.aarch64-libvirt_aarch64.json --organization opensuse --new-box-name Leap-15.4.aarch64 \ No newline at end of file + ruby obs-to-vagrantcloud.rb --url https://download.opensuse.org/distribution/leap/15.4/appliances/boxes/Leap-15.4.aarch64-libvirt_aarch64.json --organization opensuse --new-box-name Leap-15.4.aarch64 diff --git a/gocd/vagrant-publisher.gocd.yaml.erb b/gocd/vagrant-publisher.gocd.yaml.erb index 9a9ac3a8..55c5adbb 100644 --- a/gocd/vagrant-publisher.gocd.yaml.erb +++ b/gocd/vagrant-publisher.gocd.yaml.erb @@ -31,4 +31,4 @@ pipelines: - staging-bot tasks: - script: | - ruby obs-to-vagrantcloud.rb --url <%= url %> --organization opensuse --new-box-name <%= box_name %><% end -%> + ruby obs-to-vagrantcloud.rb --url <%= url %> --organization opensuse --new-box-name <%= box_name %><% end %>