Temporarily bypass tests for Ubuntu Trusty
Ubuntu Trusty is not a supported platform for Ocata onwards. Currently the CI system is executing jobs against Trusty unintentionally and it's taking some time to unwind it. This bypasses all tests if the platform detected is Trusty so that development can continue while we work out the CI configuration issue. Change-Id: I236cf4aa748c22ad0249c1eb62e7fc64736f7f7f
This commit is contained in:
parent
d3fa1029d3
commit
7698aebf69
|
@ -78,6 +78,16 @@ function gate_job_exit_tasks {
|
|||
|
||||
## Main ----------------------------------------------------------------------
|
||||
|
||||
# Workaround for bad CI jobs which are executing Trusty when they should not
|
||||
# When Trusty is detected, just exit with a successful result immediately
|
||||
source /etc/os-release 2>/dev/null
|
||||
export DISTRO_ID="${ID}"
|
||||
export DISTRO_VERSION_ID="${VERSION_ID}"
|
||||
if [[ "${DISTRO_ID}" == 'ubuntu' ]] && [[ "${DISTRO_VERSION_ID}" == '14.04' ]]; then
|
||||
echo "Ubuntu Trusty detected. Exiting without running the job."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Ensure that the Ansible environment is properly prepared
|
||||
source "${COMMON_TESTS_PATH}/test-ansible-env-prep.sh"
|
||||
|
||||
|
|
Loading…
Reference in New Issue