Run factory announcer on gocd

Ported the announcer to python3 and made the config parsing a little
easier. The current state is no longer stored as filename, but in a
config file
This commit is contained in:
Stephan Kulow
2019-05-31 12:06:25 +02:00
parent c354f8c83e
commit cdd6dc4f06
7 changed files with 174 additions and 103 deletions

36
gocd/announcer.gocd.yaml Normal file
View File

@@ -0,0 +1,36 @@
format_version: 3
pipelines:
Announcer.Factory:
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
script:
git: https://github.com/openSUSE/openSUSE-release-tools.git
timer:
spec: 0 0 * ? * *
only_on_changes: false
stages:
- Run:
resources:
- staging-bot
tasks:
- script: ./factory-package-news/announcer.py --config config/announcer/openSUSE:Factory.yml --verbose --state-file /home/go/config/announcer.yaml
Announcer.Kubic:
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
script:
git: https://github.com/openSUSE/openSUSE-release-tools.git
timer:
spec: 0 0 * ? * *
only_on_changes: false
stages:
- Run:
resources:
- staging-bot
tasks:
- script: ./factory-package-news/announcer.py --config config/announcer/openSUSE:Kubic.yml --verbose --state-file /home/go/config/announcer.yaml