Check for undefined REPO_ROOT environment variable
This commit is contained in:
parent
9d32414fca
commit
69be84aac0
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ String getGitInfo(String workingSetRootPath) {
|
|||
|
||||
def gitCheckout(String gitURL, String revision, String targetDir, String repoRoot = "", int cloneDepth = 1, boolean shallowClone = true) {
|
||||
reporootenv = env.REPO_ROOT
|
||||
if (reporootenv != mull && repoRoot != "") {
|
||||
if (reporootenv != null && repoRoot != "") {
|
||||
reporootpath = "${reporootenv.trim()}/${repoRoot}"
|
||||
} else {
|
||||
reporootpath = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue