marcoabreu closed pull request #13355: Replace fileread with reading from stdout
URL: https://github.com/apache/incubator-mxnet/pull/13355
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ci/Jenkinsfile_utils.groovy b/ci/Jenkinsfile_utils.groovy
index 007c55979b9..1c4570a24d7 100644
--- a/ci/Jenkinsfile_utils.groovy
+++ b/ci/Jenkinsfile_utils.groovy
@@ -161,8 +161,7 @@ def docker_run(platform, function_name, use_nvidia,
shared_mem = '500m') {
// Credit to https://plugins.jenkins.io/github
def get_repo_url() {
checkout scm
- sh "git config --get remote.origin.url > .git/remote-url"
- return readFile(".git/remote-url").trim()
+ return sh(returnStdout: true, script: "git config --get
remote.origin.url").trim()
}
def update_github_commit_status(state, message) {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services