Merge pull request #2198 from coolo/add_abichecker

Run abichecker on botmaster as well
This commit is contained in:
Stephan Kulow 2019-09-04 16:12:40 +02:00 committed by GitHub
commit f5eee13e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
from optparse import OptionParser
from pprint import pformat, pprint
@ -15,20 +15,13 @@ import time
import abichecker_dbmodel as DB
import sqlalchemy.orm.exc
try:
from xml.etree import cElementTree as ET
except ImportError:
import cElementTree as ET
from xml.etree import cElementTree as ET
import osc.conf
import osc.core
from osc.util.cpio import CpioRead
try:
from urllib.error import HTTPError
except ImportError:
# python 2.x
from urllib2 import HTTPError
from urllib.error import HTTPError
import rpm
from collections import namedtuple

20
gocd/abichecker.gocd.yaml Normal file
View File

@ -0,0 +1,20 @@
format_version: 3
pipelines:
SUSE.Abichecker:
group: SUSE.Checkers
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-abichecker
materials:
script:
git: https://github.com/openSUSE/openSUSE-release-tools.git
timer:
spec: 0 */15 * ? * *
only_on_changes: false
stages:
- Run:
approval: manual
resources:
- repo-checker
tasks:
- script: ./abichecker/abichecker.py --no-review --verbose -A https://api.suse.de --web-url=http://abichecker.suse.de project SUSE:Maintenance maintenance_incident