From cc6eb0c0a2e5ac356d4b20c798b8bf18499d77cb Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 31 May 2019 17:54:22 +0200 Subject: [PATCH] Add daily cleanup of Factory ignore list --- gocd/daily-cleanup.gocd.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gocd/daily-cleanup.gocd.yaml diff --git a/gocd/daily-cleanup.gocd.yaml b/gocd/daily-cleanup.gocd.yaml new file mode 100644 index 00000000..7141a724 --- /dev/null +++ b/gocd/daily-cleanup.gocd.yaml @@ -0,0 +1,29 @@ +format_version: 3 +pipelines: + Unignore.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 0 ? * * + only_on_changes: false + stages: + - Run: + approval: manual + resources: + - staging-bot + tasks: + - script: |- + set -e + tempdir=$(mktemp -d) + mkdir -p $tempdir/.osc-plugins + ln -s $PWD/osc-staging.py $tempdir/.osc-plugins + ln -s $PWD/osclib $tempdir/.osc-plugins + export HOME=$tempdir + + osc -A https://api.opensuse.org staging -p openSUSE:Factory unignore --cleanup + rm -r $tempdir