openSUSE-release-tools/gocd/check-duplicated-binaries.gocd.yaml
Stephan Kulow f1c0d07f74 Use a temporary directory for staging plugin
This way we don't rely on installed plugin (to avoid the deployment
cycle) and we don't need to install into the real home of the go user
to avoid risking that a broken plugin breaks all future jobs of the
agent
2019-05-30 21:51:48 +02:00

27 lines
791 B
YAML

format_version: 3
pipelines:
Duplicated.Binaries:
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
materials:
scripts:
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: |-
tempdir=$(mktemp -d)
mkdir -p $tempdir/.osc-plugins
ln -s $PWD/osc-staging.py $tempdir/.osc-plugins
ln -s $PWD/osclib $tempdir/.osc-plugins
HOME=$tempdir osc staging -p openSUSE:Factory check_duplicate_binaries --save
rm -rf $tempdir