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:
parent
7a62550a07
commit
0216685c99
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue