From 9ace69a119bec5578da5eb597aba53d3a1fde240 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 13 Dec 2024 21:13:00 -0500 Subject: [PATCH] save the old appsettings.json --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ac569df..0f32fa0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,7 +79,9 @@ pipeline { withCredentials([sshUserPrivateKey(credentialsId: env.linuxServiceAccountID, keyFileVariable: 'PK')]) { sh """#!/bin/bash + ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'mv dist/appsettings.json appsettings.json' ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'rm -rf dist/ && mv temp_deploy/ dist/' + ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'mv appsettings.json dist/appsettings.json' """ } }