wrong storage location

This commit is contained in:
matthias
2026-05-08 19:11:32 +02:00
parent b2b1b4e056
commit aace7a4f86
2 changed files with 3 additions and 9 deletions
+2 -8
View File
@@ -1,6 +1,5 @@
pipeline {
parameters {
booleanParam(name: 'UseLocationPrefix', defaultValue: params.backuplocally ?: true, description: 'Use the environmental backup location')
string(name: 'directory', defaultValue: params.directory ?: ' ', description: 'The directory that should be handled')
string(name: 'agentname', defaultValue: params.agentname ?: 'julien', description: 'The agent to run this backup on')
text(name: 'excludelist', defaultValue: params.excludelist ?: '**/cache/** ', description: 'Multiline string to exclude patterns from backup')
@@ -14,13 +13,8 @@ pipeline {
stages {
stage('Run Preparation') {
steps {
script {
if (params.UseLocationPrefix) {
backdirectory = env.borglocation + "/" + "${directory}"
}
echo "Backing up directory ${backdirectory}"
sh "echo '${params.excludelist}' >> excludelist"
}
echo "Backing up directory ${backdirectory}"
sh "echo '${params.excludelist}' >> excludelist"
}
}