fixed an error
This commit is contained in:
@@ -6,7 +6,7 @@ pipeline {
|
|||||||
booleanParam(name: 'backuptodavid', defaultValue: false, description: 'If true rsync the BORG repository to David')
|
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')
|
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')
|
string(name: 'directory', defaultValue: ' ', description: 'The directory that should be handled')
|
||||||
text(name: 'excludelist', defaultValue: '**/cache/** ', description: 'Multiline string to exclude patterns from backup')
|
text(name: 'excludelist', defaultValue: '**/cache/** ', description: 'Multiline string to exclude patterns from backup')
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Run Information') {
|
stage('Run Information') {
|
||||||
@@ -17,7 +17,6 @@ pipeline {
|
|||||||
echo "Backup to David is ${params.backuptodavid}"
|
echo "Backup to David is ${params.backuptodavid}"
|
||||||
echo "Backup to External PI is ${params.backuptopi}"
|
echo "Backup to External PI is ${params.backuptopi}"
|
||||||
echo "Excludelist: ${params.excludelist}"
|
echo "Excludelist: ${params.excludelist}"
|
||||||
// Create a file with the exclude list within
|
|
||||||
sh "echo '${params.excludelist}' >> excludelist"
|
sh "echo '${params.excludelist}' >> excludelist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user