diff --git a/scripts/1clickservice.groovy b/scripts/1clickservice.groovy index 3e37d10..f708467 100644 --- a/scripts/1clickservice.groovy +++ b/scripts/1clickservice.groovy @@ -153,7 +153,7 @@ pipeline { git commit -m \"set up for database\" cp appsettings.sample.json appsettings.json - sed sed -i "s/\\"DBConnectionString\\":\\"[^"]*\\"/\\"DBConnectionString\\":\\"\$databaseString\\"/g" appsettings.json + sed -i "s/\\"DBConnectionString\\":\\"[^\\"]*\\"/\\"DBConnectionString\\":\\"\${databaseString}\\"/g" appsettings.json """ @@ -194,7 +194,8 @@ pipeline { "password": "", "privateKeySource": { "stapler-class": "com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey\$DirectEntryPrivateKeySource", - "privateKey": "\$privatekeycontent", + "privateKey": "\$privatekeycontent +", }, "description": "${servicename}", "stapler-class": "com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey"