From 369feed31fb1d9c86e0b91b5af99fb580ee9bd34 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 9 Jul 2019 18:29:08 +0200 Subject: [PATCH] Integrate installcheck into the sp2 pipeline --- gocd/sle15sp2-stagings.gocd.yaml | 330 ++++++++++++++++++--------- gocd/sle15sp2-stagings.gocd.yaml.erb | 30 ++- 2 files changed, 240 insertions(+), 120 deletions(-) diff --git a/gocd/sle15sp2-stagings.gocd.yaml b/gocd/sle15sp2-stagings.gocd.yaml index 2d0c1dbd..b08c622a 100644 --- a/gocd/sle15sp2-stagings.gocd.yaml +++ b/gocd/sle15sp2-stagings.gocd.yaml @@ -115,16 +115,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -161,16 +171,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -207,16 +227,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -253,16 +283,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -299,16 +339,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -345,16 +395,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -391,16 +451,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -437,16 +507,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -483,16 +563,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -529,16 +619,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker @@ -575,16 +675,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker diff --git a/gocd/sle15sp2-stagings.gocd.yaml.erb b/gocd/sle15sp2-stagings.gocd.yaml.erb index 14a3db97..b63ba55f 100644 --- a/gocd/sle15sp2-stagings.gocd.yaml.erb +++ b/gocd/sle15sp2-stagings.gocd.yaml.erb @@ -48,16 +48,26 @@ pipelines: - DO_NOT_TRIGGER destination: scripts stages: - - 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 - + - 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-repo-checker + resources: + - repo-checker + tasks: + - script: |- + ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLE-15-SP2:GA -s $STAGING_PROJECT + - Update.000product: resources: - repo-checker