From 41045a0973cdf84664a97ed54b5b457e871e89f3 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 13 Dec 2024 22:49:00 -0500 Subject: [PATCH] connection string, ssh key --- scripts/1clickservice.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"