1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Merge pull request #100 from SAP/removeFetchUrl

remove fetchUrl Step
This commit is contained in:
Alejandra Ferreiro Vidal 2018-05-24 14:39:18 +02:00 committed by GitHub
commit 51b2241b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -1,6 +0,0 @@
import com.cloudbees.groovy.cps.NonCPS
@NonCPS
def call(url) {
return new URL(url).getText()
}

View File

@ -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()
}