Run check_maintenance_incidents.py on gocd

This commit is contained in:
Stephan Kulow 2019-05-29 07:22:52 +02:00
parent 8363fe3875
commit 3bd00cdf5d
2 changed files with 23 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
from pprint import pprint
import os, sys, re
@ -13,11 +13,7 @@ except ImportError:
import osc.conf
import osc.core
try:
from urllib.error import HTTPError, URLError
except ImportError:
# python 2.x
from urllib2 import HTTPError, URLError
from urllib.error import HTTPError, URLError
import yaml
from osclib.memoize import memoize

View File

@ -84,6 +84,27 @@ pipelines:
- legal-auto
tasks:
- script: ./legal-auto.py -A https://api.opensuse.org --debug --legaldb http://legaldb.suse.de project $(cat /home/go/config/legal-auto-projects-opensuse)
openSUSE.Maintenance:
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 */30 * ? * *
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-maintbot
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Run:
approval:
type: manual
jobs:
Run:
timeout: 0
resources:
- staging-bot3
tasks:
- script: ./check_maintenance_incidents.py --verbose review
Factory.Staging.Report:
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished