epel8 playground composes sync
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
parent
3cb20633aa
commit
0256ad65da
@ -5,21 +5,15 @@ export LC_ALL=C
|
|||||||
|
|
||||||
CONFIG="epel8-playground.conf"
|
CONFIG="epel8-playground.conf"
|
||||||
TARGET_DIR="/mnt/koji/compose/epel"
|
TARGET_DIR="/mnt/koji/compose/epel"
|
||||||
#OLD_COMPOSES_DIR="--old-composes=/mnt/fedora_koji/compose/f23 --old-composes=$TARGET_DIR"
|
|
||||||
NIGHTLY="--nightly"
|
NIGHTLY="--nightly"
|
||||||
SKIP_PHASES="--skip-phase=productimg"
|
SKIP_PHASES="--skip-phase=productimg"
|
||||||
DEST=$(pwd)
|
|
||||||
DATE=$(date "+%Y%m%d")
|
DATE=$(date "+%Y%m%d")
|
||||||
SHORT="Epel"
|
SHORT="Fedora-Epel-Playground"
|
||||||
RELEASE="EPEL8-Playground"
|
RELEASE="8"
|
||||||
RELEASE_TITLE="playground"
|
|
||||||
COMPSFILE="comps-epel8.xml"
|
|
||||||
TMPDIR=`mktemp -d /tmp/$RELEASE.$DATE.XXXX`
|
TMPDIR=`mktemp -d /tmp/$RELEASE.$DATE.XXXX`
|
||||||
TOMAIL="devel@lists.fedoraproject.org test@lists.fedoraproject.org"
|
OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE/COMPOSE_ID)
|
||||||
FROM="Fedora Rawhide Report <rawhide@fedoraproject.org>"
|
RSYNCPREFIX="sudo -u ftpsync"
|
||||||
OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE_TITLE/COMPOSE_ID)
|
RSYNCTARGET="/pub/epel/playground/$RELEASE"
|
||||||
# uncomment and edit for resuming a failed compose
|
|
||||||
#COMPOSE_ID="Fedora-23-20150530.n.0"
|
|
||||||
|
|
||||||
# assume a releng dir is a git checkout of the releng repo
|
# assume a releng dir is a git checkout of the releng repo
|
||||||
# if it does not exist clone it
|
# if it does not exist clone it
|
||||||
@ -53,6 +47,22 @@ if [ "$?" != "0" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NEWCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-$RELEASE/COMPOSE_ID)
|
||||||
|
LOCATION="https://dl.fedoraproject.org$RSYNCTARGET"
|
||||||
|
|
||||||
|
fedmsg_json_start=$(printf '{"log": "start", "branch": "%s", "arch": "%s", "short": "%s", "compose_id": "%s", "location": "%s"}' "$RELEASE" "$ARCH" "$SHORT" "$NEWCOMPOSE_ID", "$LOCATION")
|
||||||
|
fedmsg_json_done=$(printf '{"log": "done", "branch": "%s", "arch": "%s", "short": "%s", "compose_id": "%s", "location": "%s"}' "$RELEASE" "$ARCH" "$SHORT" "$NEWCOMPOSE_ID", "$LOCATION")
|
||||||
|
|
||||||
|
send_fedmsg "${fedmsg_json_start}" ${RELEASE} rsync.start
|
||||||
|
if [ ! -d "$RSYNCTARGET" ]; then
|
||||||
|
mkdir "$RSYNCTARGET"
|
||||||
|
fi
|
||||||
|
$RSYNCPREFIX compose-partial-copy --arch=aarch64 --arch=ppc64le --arch=s390x --arch=x86_64 --arch src \
|
||||||
|
"$DESTDIR" "$RSYNCTARGET/" \
|
||||||
|
--variant Everything
|
||||||
|
|
||||||
|
send_fedmsg "${fedmsg_json_done}" ${RELEASE} rsync.complete
|
||||||
|
|
||||||
# Tell everyone by fedmsg about the compose
|
# Tell everyone by fedmsg about the compose
|
||||||
send_fedmsg "${fedmsg_json_done}" ${RELEASE} complete
|
send_fedmsg "${fedmsg_json_done}" ${RELEASE} complete
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user