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:
36
gocd/announcer.gocd.yaml
Normal file
36
gocd/announcer.gocd.yaml
Normal 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
|
Reference in New Issue
Block a user