Run the monitors in python3 containers
This commit is contained in:
parent
5a1b08d81b
commit
9858031bed
@ -20,7 +20,7 @@ pipelines:
|
|||||||
Run:
|
Run:
|
||||||
timeout: 0
|
timeout: 0
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot3
|
||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
export PYTHONPATH=$PWD/scripts
|
export PYTHONPATH=$PWD/scripts
|
||||||
@ -45,7 +45,7 @@ pipelines:
|
|||||||
Run:
|
Run:
|
||||||
timeout: 0
|
timeout: 0
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot3
|
||||||
tasks:
|
tasks:
|
||||||
# endless loop
|
# endless loop
|
||||||
- script: |-
|
- script: |-
|
||||||
@ -63,10 +63,6 @@ pipelines:
|
|||||||
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
branch: master
|
branch: master
|
||||||
destination: scripts
|
destination: scripts
|
||||||
osc:
|
|
||||||
git: https://github.com/openSUSE/osc.git
|
|
||||||
branch: python3
|
|
||||||
destination: osc
|
|
||||||
stages:
|
stages:
|
||||||
- Run:
|
- Run:
|
||||||
approval:
|
approval:
|
||||||
@ -75,16 +71,16 @@ pipelines:
|
|||||||
Run:
|
Run:
|
||||||
timeout: 0
|
timeout: 0
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot3
|
||||||
tasks:
|
tasks:
|
||||||
# endless loop
|
# endless loop
|
||||||
- script: |-
|
- script: |-
|
||||||
export PYTHONPATH=$PWD/osc:$PWD/scripts
|
export PYTHONPATH=$PWD/scripts
|
||||||
git config --global user.email "coolo@suse.de"
|
git config --global user.email "coolo@suse.de"
|
||||||
git config --global user.name "GoCD Repo Monitor"
|
git config --global user.name "GoCD Repo Monitor"
|
||||||
git clone git://botmaster.suse.de/suse-repos.git
|
git clone git://botmaster.suse.de/suse-repos.git
|
||||||
cd suse-repos
|
cd suse-repos
|
||||||
python3 ../scripts/gocd/rabbit-repoid.py -A https://api.suse.de SUSE:SLE-15-SP1:GA
|
../scripts/gocd/rabbit-repoid.py -A https://api.suse.de SUSE:SLE-15-SP1:GA
|
||||||
openSUSE.Repo.Monitor:
|
openSUSE.Repo.Monitor:
|
||||||
group: Monitors
|
group: Monitors
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
@ -97,10 +93,6 @@ pipelines:
|
|||||||
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
branch: master
|
branch: master
|
||||||
destination: scripts
|
destination: scripts
|
||||||
osc:
|
|
||||||
git: https://github.com/openSUSE/osc.git
|
|
||||||
branch: python3
|
|
||||||
destination: osc
|
|
||||||
stages:
|
stages:
|
||||||
- Run:
|
- Run:
|
||||||
approval:
|
approval:
|
||||||
@ -109,13 +101,13 @@ pipelines:
|
|||||||
Run:
|
Run:
|
||||||
timeout: 0
|
timeout: 0
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot3
|
||||||
tasks:
|
tasks:
|
||||||
# endless loop
|
# endless loop
|
||||||
- script: |-
|
- script: |-
|
||||||
export PYTHONPATH=$PWD/osc:$PWD/scripts
|
export PYTHONPATH=$PWD/scripts
|
||||||
git config --global user.email "coolo@suse.de"
|
git config --global user.email "coolo@suse.de"
|
||||||
git config --global user.name "GoCD Repo Monitor"
|
git config --global user.name "GoCD Repo Monitor"
|
||||||
git clone git://botmaster.suse.de/opensuse-repos.git
|
git clone git://botmaster.suse.de/opensuse-repos.git
|
||||||
cd opensuse-repos
|
cd opensuse-repos
|
||||||
python3 ../scripts/gocd/rabbit-repoid.py -A https://api.opensuse.org openSUSE:Factory openSUSE:Leap
|
../scripts/gocd/rabbit-repoid.py -A https://api.opensuse.org openSUSE:Factory openSUSE:Leap
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
@ -15,18 +15,12 @@ from osclib.stagingapi import StagingAPI
|
|||||||
from lxml import etree as ET
|
from lxml import etree as ET
|
||||||
from openqa_client.client import OpenQA_Client
|
from openqa_client.client import OpenQA_Client
|
||||||
from openqa_client.exceptions import ConnectionError
|
from openqa_client.exceptions import ConnectionError
|
||||||
try:
|
from urllib.error import HTTPError, URLError
|
||||||
from urllib.error import HTTPError, URLError
|
from urllib.parse import quote_plus
|
||||||
from urllib.parse import quote_plus
|
|
||||||
except ImportError:
|
|
||||||
# python 2.x
|
|
||||||
from urllib2 import HTTPError, URLError
|
|
||||||
from urllib import quote_plus
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from PubSubConsumer import PubSubConsumer
|
from PubSubConsumer import PubSubConsumer
|
||||||
|
|
||||||
|
|
||||||
class Project(object):
|
class Project(object):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
self.name = name
|
self.name = name
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
@ -16,12 +16,7 @@ from osc.core import http_GET, makeurl
|
|||||||
from osclib.core import target_archs
|
from osclib.core import target_archs
|
||||||
from lxml import etree as ET
|
from lxml import etree as ET
|
||||||
|
|
||||||
try:
|
from urllib.error import HTTPError
|
||||||
from urllib.error import HTTPError
|
|
||||||
except ImportError:
|
|
||||||
# python 2.x
|
|
||||||
from urllib2 import HTTPError
|
|
||||||
|
|
||||||
from PubSubConsumer import PubSubConsumer
|
from PubSubConsumer import PubSubConsumer
|
||||||
|
|
||||||
class Listener(PubSubConsumer):
|
class Listener(PubSubConsumer):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user