Check for undefined REPO_ROOT environment variable

This commit is contained in:
Dan Hawkins 2018-02-18 18:17:26 +00:00
commit 69be84aac0

View file

@ -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 = ""