From 9663b332035024c143d3210cacb08c434ae1e2fd Mon Sep 17 00:00:00 2001 From: Willenbacher Date: Thu, 15 Feb 2018 15:50:07 +0100 Subject: [PATCH] remove fetchUrl Step --- vars/fetchUrl.groovy | 6 ------ vars/mavenExecute.groovy | 5 +++-- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 vars/fetchUrl.groovy diff --git a/vars/fetchUrl.groovy b/vars/fetchUrl.groovy deleted file mode 100644 index 2fb76c1be..000000000 --- a/vars/fetchUrl.groovy +++ /dev/null @@ -1,6 +0,0 @@ -import com.cloudbees.groovy.cps.NonCPS - -@NonCPS -def call(url) { - return new URL(url).getText() -} \ No newline at end of file diff --git a/vars/mavenExecute.groovy b/vars/mavenExecute.groovy index cbd1a43a6..7c4cd1dec 100644 --- a/vars/mavenExecute.groovy +++ b/vars/mavenExecute.groovy @@ -80,7 +80,8 @@ def call(Map parameters = [:]) { } private downloadSettingsFromUrl(String url){ - String settings = fetchUrl(url) - writeFile file: 'settings.xml', text: settings + def settings = httpRequest url + writeFile file: 'settings.xml', text: settings.getContent() + }