Escape quotes and double quotes by using ASCII codes.
This commit is contained in:
parent
2c7a0b1c8b
commit
770f7450dc
|
@ -13,7 +13,7 @@ String actionURL = "https://code-repo.d4science.org/manuele.simi/gCubeActions/ra
|
||||||
println "Querying ${actionURL}"
|
println "Querying ${actionURL}"
|
||||||
|
|
||||||
//save the action code
|
//save the action code
|
||||||
def action_code = actionURL.toURL().getText()
|
def action_code = actionURL.toURL().getText().replaceAll('"','\x22').replaceAll('\'','\x27')
|
||||||
println "Action code: ${action_code}"
|
println "Action code: ${action_code}"
|
||||||
|
|
||||||
//TODO: get the list of repos from Jenkins?
|
//TODO: get the list of repos from Jenkins?
|
||||||
|
|
Loading…
Reference in New Issue