2016-07-26 06:40:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
|
|
LABEL=$1
|
|
|
|
CONFIG="fedora-alpha.conf"
|
2016-08-19 21:47:02 +00:00
|
|
|
TARGET_DIR="/mnt/koji/compose/25"
|
2016-07-26 06:40:45 +00:00
|
|
|
#OLD_COMPOSES_DIR="--old-composes=/mnt/fedora_koji/compose/f23 --old-composes=$TARGET_DIR"
|
|
|
|
NIGHTLY=""
|
|
|
|
SKIP_PHASES="--skip-phase=productimg"
|
|
|
|
DEST=$(pwd)
|
|
|
|
DATE=$(date "+%Y%m%d")
|
2016-08-19 21:47:02 +00:00
|
|
|
COMPSFILE="comps-f25.xml"
|
|
|
|
TMPDIR=`mktemp -d /tmp/fedoraRC.$DATE.XXXX`
|
2016-07-26 06:40:45 +00:00
|
|
|
# uncomment and edit for resuming a failed compose
|
|
|
|
#COMPOSE_ID="Fedora-23-20150530.n.0"
|
|
|
|
|
|
|
|
pushd $TMPDIR
|
|
|
|
git clone https://pagure.io/fedora-comps.git && {
|
|
|
|
pushd fedora-comps
|
|
|
|
make "${COMPSFILE}"
|
|
|
|
cp "${COMPSFILE}" $DEST/
|
|
|
|
popd
|
|
|
|
}
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
CMD="pungi-koji --notification-script=/usr/bin/pungi-fedmsg-notification --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES --label=$LABEL"
|
|
|
|
|
|
|
|
if [ -z "$COMPOSE_ID" ]; then
|
|
|
|
CMD="$CMD --target-dir=$TARGET_DIR"
|
|
|
|
else
|
|
|
|
CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID"
|
|
|
|
fi
|
|
|
|
|
|
|
|
time $CMD "$@"
|