See 
<https://builds.apache.org/job/Mesos-Docker-CentOS/65/display/redirect?page=changes>

Changes:

[xujyan] Fixed flaky ReconciliationTest.ReconcileStatusUpdateTaskState.

[chhsiao] Delayed construction of the agent's resource provider manager.

[chhsiao] Externalized creation of resource provider manager backing storage.

[chhsiao] Renamed resource provider `AgentRegistrar` to `GenericRegistrar`.

[chhsiao] Passed on registrar when constructing resource provider manager.

[chhsiao] Set up recovery code paths of resource provider manager.

[chhsiao] Remembered recovered and subscribed providers in ephemeral state.

[chhsiao] Added admitted resource providers to the manager's registry.

[chhsiao] Prevent resubscription of resource providers with unknown IDs.

[chhsiao] Removed redundant master flags in resource provider tests.

[andrew] Split `stout/os/open.hpp` into Windows and POSIX files.

[andrew] Windows: Replaced `_wopen()` with `CreateFileW()` in `os::open()`.

[andrew] Windows: Replaced `WindowsFD` with `int_fd` typedef.

[andrew] Windows: More constness in stout.

[andrew] Split `stout/os/lseek.hpp` into Windows and POSIX files.

[andrew] Windows: Fixed `os::lseek()` to use `SetFilePointerEx()`.

[andrew] Windows: Fixed `os::ftruncate()` to use `FileEndOfFileInfo`.

[andrew] Windows: Deleted dead code from `process::internal` namespace.

[andrew] Windows: Fixed `os::dup()` to use `DuplicateHandle()`.

[andrew] Windows: Fixed `os::read()` to use `ReadFile()`.

[andrew] Windows: Fixed `os::write()` to use `WriteFile()`.

[andrew] Windows: Refactored `subprocess_windows.cpp` to use `os::open()`.

[andrew] Added overloads for `int_fd` to `os::stat::isdir()` and `size()`.

[andrew] Removed use of `fstat()` from `http.cpp` and `http_proxy.cpp`.

[andrew] Windows: Removed `FD_CRT` from `WindowsFD` abstraction.

[andrew] Windows: Made `net::download()` use CRT file descriptor explicitly.

[andrew] Windows: Made `libevent` use `int_fd` correctly.

[andrew] Windows: Made `protobuf::write()` use CRT file descriptor explicitly.

[andrew] Replaced `open()` with `os::open()` in `http_proxy.cpp`.

[andrew] Windows: Fixed `os::abort()` to use `WriteFile()`.

[andrew] Fixed `Subprocess::ChildHook::CHDIR()` to use `os::chdir()`.

[andrew] Windows: Deleted `stout/os/windows/signals.hpp`.

[andrew] Windows: Cleaned up included CRT headers.

[andrew] Windows: Ported more unit tests from `os_tests.cpp`.

[andrew] Added `FsTest.Open` to cover `os::open()`.

[andrew] Windows: Fixed `os::stat::mtime()` to use `GetFileTime()`.

[andrew] Windows: Ported the rest of the `SubprocessTest` suite.

[andrew] Windows: Specialized `flags::parse<int_fd>`.

[andrew] Replaced `int` and `HANDLE` types with `int_fd`.

[andrew] Fixed `mesos-tcp-connect` to use `net::socket`.

[andrew] Added `SubprocessTest.PipeLargeOutput`.

------------------------------------------
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H22 (ubuntu xenial) in workspace 
<https://builds.apache.org/job/Mesos-Docker-CentOS/ws/>
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/mesos.git # timeout=10
Fetching upstream changes from https://git-wip-us.apache.org/repos/asf/mesos.git
 > git --version # timeout=10
 > git fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/mesos.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 8e2d6d296e055b5617d3ea63dc061ad29c66a1da (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 8e2d6d296e055b5617d3ea63dc061ad29c66a1da
Commit message: "Added `SubprocessTest.PipeLargeOutput`."
 > git rev-list --no-walk 0812300e4e1ae06ea5cc741a90fce0a9e833a95c # timeout=10
 > git tag -a -f -m Jenkins Build #65 jenkins-Mesos-Docker-CentOS-65 # 
 > timeout=10
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
USERNAME=mesosdockerbot

[EnvInject] - Variables injected successfully.
[EnvInject] - Mask passwords that will be passed as build parameters.
[Mesos-Docker-CentOS] $ /bin/bash -xe /tmp/jenkins4124077132507633649.sh
+ ./support/jenkins/docker-centos.sh

# This script build and push Docker image that has Mesos distro
# installed (based on CentOS).

CURRENT_DIR="$(cd "$(dirname "$0")"; pwd -P)"
cd "$(dirname "$0")"; pwd -P
dirname "$0"
SUPPORT_DIR="${CURRENT_DIR}/.."

: ${USERNAME:?"Environment variable 'USERNAME' must be set to the username of 
the 'Mesos DockerBot' Docker hub account."}
: ${PASSWORD:?"Environment variable 'PASSWORD' must be set to the password of 
the 'Mesos DockerBot' Docker hub account."}

DOCKER_IMAGE_PACKAGING=${DOCKER_IMAGE_PACKAGING:-"mesos/mesos-centos-packaging"}
DOCKER_IMAGE_DISTRO=${DOCKER_IMAGE_DISTRO:-"mesos/mesos-centos"}
DOCKER_IMAGE_TAG=`date +%F`
date +%F

function cleanup {
  docker rmi $(docker images -q ${DOCKER_IMAGE_PACKAGING}:${DOCKER_IMAGE_TAG}) 
|| true
  docker rmi $(docker images -q ${DOCKER_IMAGE_DISTRO}:${DOCKER_IMAGE_TAG}) || 
true
}

trap cleanup EXIT

DOCKER_IMAGE_PACKAGING=${DOCKER_IMAGE_PACKAGING} \
DOCKER_IMAGE_DISTRO=${DOCKER_IMAGE_DISTRO} \
DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG} \
"${SUPPORT_DIR}/packaging/centos/build-docker-image.sh"

# This script builds a CentOS based docker image with Mesos installed
# using the current head of the source tree.

CENTOS_DIR="$(cd "$(dirname "$0")"; pwd -P)"
cd "$(dirname "$0")"; pwd -P
dirname "$0"
SOURCE_DIR="$(cd ${CENTOS_DIR}/../../..; pwd -P)"
cd ${CENTOS_DIR}/../../..; pwd -P

DOCKER_IMAGE_PACKAGING=${DOCKER_IMAGE_PACKAGING:-"mesos/mesos-centos-packaging"}
DOCKER_IMAGE_DISTRO=${DOCKER_IMAGE_DISTRO:-"mesos/mesos-centos"}
DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG:-"latest"}

if ! [ -x "$(command -v docker)" ]; then
  echo 'Error: docker is not installed.' >&2
  exit 1
fi
command -v docker

if [ -d "${SOURCE_DIR}/centos7" ]; then
  echo "Please cleanup 'centos7' under your Mesos source directory"
  exit 1
fi
Please cleanup 'centos7' under your Mesos source directory
cleanup
docker images -q ${DOCKER_IMAGE_PACKAGING}:${DOCKER_IMAGE_TAG}
"docker rmi" requires at least 1 argument(s).
See 'docker rmi --help'.

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]

Remove one or more images
docker images -q ${DOCKER_IMAGE_DISTRO}:${DOCKER_IMAGE_TAG}
"docker rmi" requires at least 1 argument(s).
See 'docker rmi --help'.

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]

Remove one or more images
Build step 'Execute shell' marked build as failure

Reply via email to