This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 7c5737b Updated version of the jenkins autest build script 7c5737b is described below commit 7c5737b2e241045bbf16c01ba65968cfe273714e Author: Leif Hedstrom <zw...@apache.org> AuthorDate: Tue Aug 29 16:35:44 2017 -0600 Updated version of the jenkins autest build script --- ci/jenkins/bin/autest.sh | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/ci/jenkins/bin/autest.sh b/ci/jenkins/bin/autest.sh index d3cb205..279f0fe 100644 --- a/ci/jenkins/bin/autest.sh +++ b/ci/jenkins/bin/autest.sh @@ -16,31 +16,43 @@ # See the License for the specific language governing permissions and # limitations under the License. -cd "${WORKSPACE}/src" +# Setup autoconf +cd src [ -d tests ] || exit 0 autoreconf -if INSTALL="${WORKSPACE}/${BUILD_NUMBER}/install" -SANDBOX="/var/tmp/ausb-${ghprbPullId}" + +URL="https://ci.trafficserver.apache.org/files/autest" +AUSB="ausb-${ghprbPullId}.${BUILD_NUMBER}" +SANDBOX="/var/tmp/${AUSB}" mkdir -p $INSTALL ./configure --prefix="$INSTALL" \ --with-user=jenkins \ --enable-experimental-plugins \ - --enable-example-plugins \ --enable-ccache \ --enable-debug \ --enable-werror # Build and run regressions -${ATS_MAKE} ${ATS_MAKE_FLAGS} V=1 Q= -${ATS_MAKE} check VERBOSE=Y && ${ATS_MAKE} install - +${ATS_MAKE} ${ATS_MAKE_FLAGS} V=1 Q= || exit -1 +${ATS_MAKE} install /usr/bin/autest -D ./tests/gold_tests --sandbox "$SANDBOX" --ats-bin "${INSTALL}/bin" -status="$?" - -[ "0" != "$status" ] && exit -1 -exit 0 - +status=$? + +# Cleanup +cd /var/tmp # To be safer +if [ "0" != "$status" ]; then + if [ -d "$SANDBOX" ]; then + find "$SANDBOX" -name \*.db -exec rm {} \; + mv "$SANDBOX" /CA/autest + echo "Sandbox is available at ${URL}/${AUSB}/" + fi + exit -1 +else + [ -d "$SANDBOX" ] && rmdir "$SANDBOX" + exit 0 +fi -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].