env infra: improve restart script

This commit is contained in:
Schneider Roland 2025-06-01 11:47:42 +02:00
parent f1b34076b7
commit 62eb507a5e

View File

@ -2,17 +2,15 @@ pipeline {
agent any
stages {
stage('Checkout') {
steps {
git branch: 'main', credentialsId: 'rschneider_gitea.rschneider.hu', url: 'https://gitea.rschneider.hu/rschneider/infra.git'
}
}
stage('Restart') {
steps {
sh returnStdout: true, script: '''
cd environments/infra
bash restart.sh
'''
sshPublisher(publishers: [sshPublisherDesc(configName: 'infra.1', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '''
cd /home/rschneider/infra/
git pull
cd environments/infra
bash ./restart.sh
''', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '//home/rschneider/infra/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}