autodist-cgi: add packages links to webbuild page
This commit is contained in:
parent
b36a8a552e
commit
a518dbe02a
13
autodist-cgi
13
autodist-cgi
@ -259,13 +259,14 @@ _EOF
|
|||||||
# set -- ${BUILDNOW[$b]}
|
# set -- ${BUILDNOW[$b]}
|
||||||
JOBNAME=${BUILDNOW[$b]}
|
JOBNAME=${BUILDNOW[$b]}
|
||||||
[ "$JOBNAME" ] || continue
|
[ "$JOBNAME" ] || continue
|
||||||
echo -n "<b>$JOBNAME</b>: "
|
echo -n "<a href=\"/distribution/webbuild.php?ENVIRONMENT=$i&PACKAGE=$JOBNAME\" target=\"webbuild\"><b>$JOBNAME</b></a>: "
|
||||||
rowcnt=0
|
rowcnt=0
|
||||||
if [ "${BUILDLOG[$b]}" ]; then
|
if [ "${BUILDLOG[$b]}" ]; then
|
||||||
for l in ${BUILDLOG[$b]}; do
|
for l in ${BUILDLOG[$b]}; do
|
||||||
SUBJOBNAME=`echo $l | sed "s|.*/${JOBNAME}_\(.*\)\..*|\1|"`
|
SUBJOBNAME=`echo $l | sed "s|.*/${JOBNAME}_\(.*\)\..*|\1|"`
|
||||||
[ "${SUBJOBNAME:0:1}" = "_" ] && SUBJOBNAME=$l
|
[ "${SUBJOBNAME:0:1}" = "_" ] && SUBJOBNAME=$l
|
||||||
[ "$SUBJOBNAME" = "$l" ] && SUBJOBNAME=`echo $l | sed "s|.*/\(.*\)\..*|\1|"`
|
[ "$SUBJOBNAME" = "$l" ] && SUBJOBNAME=`echo $l | sed "s|.*/\(.*\)\..*|\1|"`
|
||||||
|
SUBJOBNAME=${SUBJOBNAME/__*}
|
||||||
OPERATIONNAME=`echo $l | sed "s|\(.*\)/.*/.*|\1|"`
|
OPERATIONNAME=`echo $l | sed "s|\(.*\)/.*/.*|\1|"`
|
||||||
OPERATIONSTATUS=`echo $l | sed "s|.*/\(.*\)/.*|\1|"`
|
OPERATIONSTATUS=`echo $l | sed "s|.*/\(.*\)/.*|\1|"`
|
||||||
if [ $rowcnt -ge 4 ]; then
|
if [ $rowcnt -ge 4 ]; then
|
||||||
@ -273,15 +274,15 @@ _EOF
|
|||||||
rowcnt=0
|
rowcnt=0
|
||||||
fi
|
fi
|
||||||
if [ "$OPERATIONNAME" = "send" -a "$OPERATIONSTATUS" = "ok" ]; then
|
if [ "$OPERATIONNAME" = "send" -a "$OPERATIONSTATUS" = "ok" ]; then
|
||||||
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\">$OPERATIONNAME/$OPERATIONSTATUS</a>"
|
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\">$OPERATIONNAME:$OPERATIONSTATUS</a>"
|
||||||
elif [ "$OPERATIONNAME" = "install" -a "$OPERATIONSTATUS" = "ok" ]; then
|
elif [ "$OPERATIONNAME" = "install" -a "$OPERATIONSTATUS" = "ok" ]; then
|
||||||
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\">$OPERATIONNAME/$OPERATIONSTATUS</a>"
|
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\">$OPERATIONNAME:$OPERATIONSTATUS</a>"
|
||||||
elif [ "$OPERATIONSTATUS" = "ok" ]; then
|
elif [ "$OPERATIONSTATUS" = "ok" ]; then
|
||||||
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\"><font color=black>$OPERATIONNAME/$OPERATIONSTATUS</font></a>"
|
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\"><font color=black>$OPERATIONNAME:$OPERATIONSTATUS</font></a>"
|
||||||
else
|
else
|
||||||
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\"><font color=red>$OPERATIONNAME/$OPERATIONSTATUS</font></a>"
|
echo -n "<a href=\"?SHOWLOG=$l&NUM=$i$HOST_ADD\"><font color=red>$OPERATIONNAME:$OPERATIONSTATUS</font></a>"
|
||||||
fi
|
fi
|
||||||
[ "$SUBJOBNAME" != "$JOBNAME" ] && echo -en "($SUBJOBNAME)"
|
[ "$SUBJOBNAME" != "$JOBNAME" ] && echo -en "(<a href=\"/distribution/webbuild.php?ENVIRONMENT=$i&PACKAGE=$SUBJOBNAME\" target=\"webbuild\">$SUBJOBNAME</a>)"
|
||||||
echo -n " "
|
echo -n " "
|
||||||
rowcnt=`expr $rowcnt + 1`
|
rowcnt=`expr $rowcnt + 1`
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user