Escape backslashes.

This commit is contained in:
Manuele Simi 2021-01-23 22:42:09 -05:00
parent d0deea935d
commit c744ce5379
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ String actionURL = "https://code-repo.d4science.org/manuele.simi/gCubeActions/ra
println "Querying ${actionURL}"
//save the action code
def action_code = actionURL.toURL().getText().replaceAll('"', $/\x22/$).replaceAll('\'', $/\x27/$)
def action_code = actionURL.toURL().getText().replaceAll('"', $/\\\\x22/$).replaceAll('\'', $/\\\\x27/$)
println "Action code: ${action_code}"
//TODO: get the list of repos from Jenkins?