Skip to content

Instantly share code, notes, and snippets.

@taaem
Last active May 4, 2017 14:26
Show Gist options
  • Save taaem/53ed3a99893d323d7ab3bd8d07540f50 to your computer and use it in GitHub Desktop.
Save taaem/53ed3a99893d323d7ab3bd8d07540f50 to your computer and use it in GitHub Desktop.
How-To Promote from devel: to testing: for onyx

Promote

This describes how to promote all packages from devel: repo to testing: repo on build.merproject.org.

Get all package names and make a shell script for use with OSC

curl -O https://gist.githubusercontent.com/taaem/c80d094d31545f10f6d58f2ba4dcb675/raw/88846751b1be9df489ad56afa0376014a9331acb/promote.py
python promote.py > promote.sh

Copy all packages

sh promote.sh

Download the whole project

rm -r nemo:testing:hw:$VENDOR:$DEVICE
osc co nemo:testing:hw:$VENDOR:$DEVICE

If this fails just rerun until it finishes.

Remove all Webhooks

cd nemo:testing:hw:$VENDOR:$DEVICE
find -maxdepth 2 -name _service -exec sed -i '/<service name="webhook">/,/<\/service>/d' {} \;

Push to OBS

Ensure you are in nemo:testing:hw:$VENDOR:$DEVICE

osc ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment