Rather than check out a release repo to see if it exists or not use git ls-remote to establish if it exists

This commit is contained in:
Dan Hawkins 2019-05-03 15:31:49 +01:00
commit 0216685c99

View file

@ -129,9 +129,11 @@ def checkRepoExists(String gitURL) {
returnStatus: true
)
}
echo "git ls-remote return result: ${result}"
if (result > 0) {
echo "git ls-remote return result: ${result}"
error("The release repo: ${gitURL} cannot be found. Please ensure this exists before building")
} else {
echo "The release repo: ${gitURL} exists"
}
}