wrong storage location
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user