i take it back, it does need to be
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f0287a0014
commit
8e1fcef0a7
@ -7,6 +7,7 @@ Components/Layout/NavMenu.razor
|
||||
Configuration.cs
|
||||
devuitls.sh
|
||||
greynsvcDBContext.cs
|
||||
Jenkinsfile
|
||||
Migrations/20241213175020_greets.cs
|
||||
Migrations/20241213175020_greets.Designer.cs
|
||||
Migrations/greynsvcDBContextModelSnapshot.cs
|
||||
|
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -32,8 +32,8 @@ pipeline {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: env.linuxServiceAccountID, keyFileVariable: 'PK')])
|
||||
{
|
||||
sh """#!/bin/bash
|
||||
ssh -i \"${PK}\" -tt ${linuxServiceAccount_USR}@${targetHost} 'rm -rf temp_deploy & mkdir -p temp_deploy'
|
||||
scp -i \"${PK}\" -r dist ${linuxServiceAccount_USR}@${env.targetHost}:temp_deploy
|
||||
ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'rm -rf temp_deploy & mkdir -p temp_deploy'
|
||||
scp -i \"$${PK}\" -r dist $${linuxServiceAccount_USR}@$${env.targetHost}:temp_deploy
|
||||
"""
|
||||
}
|
||||
}
|
||||
@ -47,7 +47,7 @@ pipeline {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: env.linuxServiceAccountID, keyFileVariable: 'PK')])
|
||||
{
|
||||
sh """#!/bin/bash
|
||||
ssh -i \"${PK}\" -tt ${linuxServiceAccount_USR}@${targetHost} 'systemctl --user stop $REPO_NAME'
|
||||
ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'systemctl --user stop $$REPO_NAME'
|
||||
"""
|
||||
}
|
||||
}
|
||||
@ -64,7 +64,7 @@ pipeline {
|
||||
|
||||
sh """#!/bin/bash
|
||||
pushd dist
|
||||
dotnet ef database update --connection "${env.productiondatabase_connectionString}"
|
||||
dotnet ef database update --connection "$${env.productiondatabase_connectionString}"
|
||||
popd
|
||||
"""
|
||||
//TODO: if updating the db fails, restore the old one
|
||||
@ -81,7 +81,7 @@ pipeline {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: env.linuxServiceAccountID, keyFileVariable: 'PK')])
|
||||
{
|
||||
sh """#!/bin/bash
|
||||
ssh -i \"${PK}\" -tt ${linuxServiceAccount_USR}@${targetHost} 'rm -rf dist/ && mv temp_deploy/ dist/'
|
||||
ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'rm -rf dist/ && mv temp_deploy/ dist/'
|
||||
"""
|
||||
}
|
||||
}
|
||||
@ -95,7 +95,7 @@ pipeline {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: env.linuxServiceAccountID, keyFileVariable: 'PK')])
|
||||
{
|
||||
sh """#!/bin/bash
|
||||
ssh -i \"${PK}\" -tt ${linuxServiceAccount_USR}@${targetHost} 'systemctl --user start $REPO_NAME'
|
||||
ssh -i \"$${PK}\" -tt $${linuxServiceAccount_USR}@$${targetHost} 'systemctl --user start $$REPO_NAME'
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user