openSUSE-release-tools/gocd/sp1.target.gocd.yaml
2019-05-30 09:26:44 +02:00

89 lines
2.9 KiB
YAML

format_version: 3
pipelines:
SLE15.SP1.RelPkgs:
group: SLE15.SP1.Target
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
stages:
- Create.Release.Packages:
approval: manual
resources:
- repo-checker
tasks:
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP1:GA -s target --only-release-packages --force
SLE15.SP1.Package.Lists:
group: SLE15.SP1.Target
lock_behavior: unlockWhenFinished
materials:
repos:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
whitelist:
- SUSE:SLE-15-SP1:GA_-_standard.yaml
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
stages:
- Update.000product:
resources:
- repo-checker
tasks:
- script: ./pkglistgen.py --apiurl https://api.suse.de --debug update_and_solve -p SUSE:SLE-15-SP1:GA -s target --force || true
SLE15.SP1.Images:
group: SLE15.SP1.Target
lock_behavior: unlockWhenFinished
materials:
repos:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
whitelist:
- SUSE:SLE-15-SP1:GA_-_images.yaml
destination: repos
scripts:
auto_update: true
git: https://github.com/openSUSE/openSUSE-release-tools.git
whitelist:
- DO_NOT_TRIGGER
destination: scripts
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
stages:
- Expect.Images.To.Finish:
resources:
- staging-bot
tasks:
- script: |
export PYTHONPATH=scripts
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP1:GA -r images
- Release.Images.To.Test:
approval: manual
roles:
- SLE
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-totest-manager
resources:
- staging-bot
tasks:
- script: |-
for product in kiwi-templates-SLES15-JeOS \
SLES15-SP1-Azure SLES15-SP1-Azure-BYOS \
SLES15-SP1-Azure-Priority SLES15-SP1-Azure-Standard \
SLES15-SP1-EC2-ECS-HVM SLES15-SP1-EC2-HVM \
SLES15-SP1-EC2-HVM-BYOS SLES15-SP1-GCE SLES15-SP1-GCE-BYOS \
SLES15-SP1-SAP-Azure SLES15-SP1-SAP-Azure-BYOS \
SLES15-SP1-SAP-Azure-LI-BYOS \
SLES15-SP1-SAP-EC2-HVM SLES15-SP1-SAP-EC2-HVM-BYOS \
SLES15-SP1-OCI-BYOS SLES15-SP1-SAP-OCI-BYOS \
SLES15-SP1-SAP-GCE SLES15-SP1-SAP-GCE-BYOS 000product; do
osc -A https://api.suse.de release SUSE:SLE-15-SP1:GA $product
done