added parameter agent

This commit is contained in:
matthias
2026-05-08 12:40:04 +02:00
parent e6d25bff2d
commit 7a3fbd64b3
+2 -1
View File
@@ -1,12 +1,13 @@
pipeline {
agent any
parameters {
booleanParam(name: 'backuplocally', defaultValue: params.backuplocally ?: false, description: 'If true local BORG backup will be created')
booleanParam(name: 'backuptodavid', defaultValue: params.backuptodavid ?: false, description: 'If true rsync the BORG repository to David')
booleanParam(name: 'backuptowinschoten', defaultValue: params.backuptowinschoten ?: false, description: 'If true rsync the BORG repository to our Winschoten backup system')
string(name: 'directory', defaultValue: params.directory ?: ' ', description: 'The directory that should be handled')
string(name: 'agentname', defaultValue: params.directory ?: 'any', description: 'The agent to run this backup on')
text(name: 'excludelist', defaultValue: params.excludelist ?: '**/cache/** ', description: 'Multiline string to exclude patterns from backup')
}
agent params.agentname
environment {
BORG_RELOCATED_REPO_ACCESS_IS_OK = 'yes'
}