openSUSE-release-tools/gocd/monitors.gocd.yaml

119 lines
3.4 KiB
YAML

format_version: 3
pipelines:
openSUSE.openQA:
group: Monitors
lock_behavior: unlockWhenFinished
timer:
spec: 0 */5 * ? * *
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
branch: master
stages:
- Run:
approval:
type: manual
jobs:
Run:
timeout: 0
resources:
- staging-bot
tasks:
- script: |-
./gocd/rabbit-openqa.py -A https://api.opensuse.org
SUSE.openQA:
group: Monitors
lock_behavior: unlockWhenFinished
timer:
spec: 0 */5 * ? * *
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
branch: master
stages:
- Run:
approval:
type: manual
jobs:
Run:
timeout: 0
resources:
- staging-bot
tasks:
# endless loop
- script: |-
./gocd/rabbit-openqa.py -A https://api.suse.de
SUSE.Repo.Monitor:
group: Monitors
lock_behavior: unlockWhenFinished
timer:
spec: 0 */5 * ? * *
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
scripts:
git: https://github.com/openSUSE/openSUSE-release-tools.git
branch: master
destination: scripts
osc:
git: https://github.com/openSUSE/osc.git
branch: python3
destination: osc
stages:
- Run:
approval:
type: manual
jobs:
Run:
timeout: 0
resources:
- staging-bot
tasks:
# endless loop
- script: |-
git config --global user.email "coolo@suse.de"
git config --global user.name "GoCD Repo Monitor"
git clone git://botmaster.suse.de/suse-repos.git
cd suse-repos
ls -l
export PYTHONPATH=../osc:/usr/share/openSUSE-release-tools
python3 ../scripts/gocd/rabbit-repoid.py -A https://api.suse.de SUSE:SLE-15-SP1:GA
openSUSE.Repo.Monitor:
group: Monitors
lock_behavior: unlockWhenFinished
timer:
spec: 0 */5 * ? * *
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
scripts:
git: https://github.com/openSUSE/openSUSE-release-tools.git
branch: master
destination: scripts
osc:
git: https://github.com/openSUSE/osc.git
branch: python3
destination: osc
stages:
- Run:
approval:
type: manual
jobs:
Run:
timeout: 0
resources:
- staging-bot
tasks:
# endless loop
- script: |-
git config --global user.email "coolo@suse.de"
git config --global user.name "GoCD Repo Monitor"
git clone git://botmaster.suse.de/opensuse-repos.git
cd opensuse-repos
export PYTHONPATH=../osc:/usr/share/openSUSE-release-tools
python3 ../scripts/gocd/rabbit-repoid.py -A https://api.opensuse.org openSUSE:Factory openSUSE:Leap