in jobs/caffe2.groovy [388:414]
image: dockerImage('${DOCKER_IMAGE_TAG}'),
commitImage: dockerImage('${DOCKER_COMMIT_TAG}'),
// TODO: use 'host-copy'. Make sure you copy out the archived artifacts
workspaceSource: "host-copy",
script: '''
set -ex
# Reinitialize submodules
git submodule update --init --recursive
# Configure additional cmake arguments
cmake_args=()
cmake_args+=("$CMAKE_ARGS")
if [[ $BUILD_ENVIRONMENT == *aten* ]]; then
cmake_args+=("-DBUILD_ATEN=ON")
fi
# conda must be added to the path for Anaconda builds (this location must be
# the same as that in install_anaconda.sh used to build the docker image)
if [[ "${BUILD_ENVIRONMENT}" == conda* ]]; then
export PATH=/opt/conda/bin:$PATH
sudo chown -R jenkins:jenkins '/opt/conda'
fi
# Build
./.jenkins/caffe2/build.sh ${cmake_args[@]}