From 3916a4078a5dbb0ddae2b64e14649dde67a7f45a Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 12 Jan 2026 20:11:23 +0100 Subject: [PATCH] Added parameters for exclude list and added more printout --- jenkins/default_backup.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jenkins/default_backup.yml b/jenkins/default_backup.yml index 1ef9d6b..80a9d0e 100644 --- a/jenkins/default_backup.yml +++ b/jenkins/default_backup.yml @@ -5,15 +5,19 @@ pipeline { booleanParam(name: 'backuptostackstorage', defaultValue: false, description: 'If true backup data to TransIP Stack') booleanParam(name: 'backuptodavid', defaultValue: false, description: 'If true rsync the BORG repository to David') booleanParam(name: 'backuptopi', defaultValue: false, description: 'If true rsync the BORG repository to our ExternalPI') + string(name: 'directory', defaultValue: ' ', description: 'The directory that should be handled') + text(name: 'excludelist', defaultValue: '**/cache/** ', description: 'Multiline string to exclude patterns from backup') } stages { stage('Run Information') { steps { + echo "Backing up directory ${env.storagelocation}/${directory}" echo "Local BORG backup creation is ${params.backuplocally}" echo "Backup to TransIP Stack is ${params.backuptostackstorage}" echo "Backup to David is ${params.backuptodavid}" echo "Backup to External PI is ${params.backuptopi}" echo "Excludelist: ${params.excludelist}" + // Create a file with the exclude list within sh "echo '${params.excludelist}' >> excludelist" } }