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 a6fae9c25..70175295e 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() + }