# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at
java.lang.NullPointerException # http://www.apache.org/licenses/LICENSE-2.0
java.lang.NullPointerException # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License.
[ -n "$pop_url" ] || exit101 if [ -z "$pop_build_info" ]; then
pop_build_info="nbbuild/build/build_info"
fi
[ -n "$pop_job" ] || exit103
testmodule() { if ant $ANT_PARAM -f $1/build.xml test-unit -Dtest-unit-sys-prop.ignore.random.failures=true; then
echo Test OK: $1 else
echo $1 >>$RESULT exit5
fi
}
rollback() { EXIT="$?" if [ -n "$BASETIP" ]; then
echo "Script failed with exitcode $EXIT rolling back to $BASETIP"
hg update -C
hg --config extensions.mq= strip -n "$BASETIP"
hg pull -r "$BASETIP" else
echo "No rollback, exitcode $EXIT"
fi
}
HGID=`echo "$HGINFO" | grep "Hg ID"`
echo Last build_info line: "$HGID"
HGTIP=`echo "$HGID" | cut -f 2 -d ":" | while read X; do echo $X; done`
echo Last OK revision: "$HGTIP"
hg pull -r "$HGTIP""$pop_url" || exit5
echo 'hg parent:'
hg parent if [ `hg heads --template'{node|short}\n' | wc -l` = 1 ]
then
hg up || exit6 else if hg --config ui.merge=internal:merge --config ui.interactive=1 merge "$HGTIP" < /dev/null; then
echo Merge OK. else
echo Merge failed.
hg heads exit7
fi
hg ci -u "$push_username"@netbeans.org -m "Merge of $pop_url" || exit8
fi
HGOUT=`hg out $push_url`
testresult "$TESTDIR""outgoing.changes""$HGOUT"
OUT_COUNT=`hg out --no-merges --template'change: {node|short}\n' $push_url | grep '^change: ' | wc -l` if [ "$OUT_COUNT" -gt 0 ]; then
echo "Let the build start. There are $OUT_COUNT outgoing changes." else
echo "No outgoing changes. No reason to do build."
echo >"nbbuild/no-outgoing-changes-no-build.zip" if egrep "Location:.*/blue(_anime)?[.]""$STATUS"; then
echo Build seems to be stable
testresult "$TESTDIR""check.build.stable""`cat $STATUS`" else
echo Build is not stable
testresult "$TESTDIR""check.build.stable""`cat $STATUS`""1"
echo >"nbbuild/downstream-builder-not-stable-no-push.zip"
fi exit0
fi
. `dirname $0`/round-robin-build
if dobuild; then for i in 12345678910; do if hg push -f "$push_url"; then
echo "Build and push successful"
unset BASETIP exit0
fi
done
echo "Push failed" exit1 else
echo "Failure, rolling back own commits to $BASETIP" exit1
fi
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.