From c744ce5379726f16967fdcaad895c033012a7743 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Sat, 23 Jan 2021 22:42:09 -0500 Subject: [PATCH] Escape backslashes. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7310271..b49465a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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?