This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/master by this push:
new 5e77419 YETUS-786. JENKINS_URL is not always populated in a pipeline
docker agent
5e77419 is described below
commit 5e77419c86c02d933f5d5f31b84c80e8b09a83c6
Author: Allen Wittenauer <[email protected]>
AuthorDate: Sun Feb 3 12:40:25 2019 -0800
YETUS-786. JENKINS_URL is not always populated in a pipeline docker agent
Signed-off-by: Allen Wittenauer <[email protected]>
---
precommit/src/main/shell/robots.d/jenkins.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/precommit/src/main/shell/robots.d/jenkins.sh
b/precommit/src/main/shell/robots.d/jenkins.sh
index 3d959a5..52f8ab1 100755
--- a/precommit/src/main/shell/robots.d/jenkins.sh
+++ b/precommit/src/main/shell/robots.d/jenkins.sh
@@ -16,6 +16,8 @@
# SHELLDOC-IGNORE
+# Work around JENKINS-55752 / YETUS-786
+JENKINS_URL=${JENKINS_URL:-${HUDSON_URL}}
# we need two for Jenkins because users may
# use the jenkins-cli which will also read JENKINS_URL
@@ -139,6 +141,7 @@ function jenkins_set_plugin_defaults
# in case of re-exec
USER_PARAMS+=("--mvn-custom-repos")
yetus_error "WARNING: Setting --mvn-custom-repos due to previously invalid
home directory"
+ # shellcheck disable=SC2034
MAVEN_CUSTOM_REPOS=true
fi
}