Skip to content

config.xml for a job in a folder is not correctly excluded by provided backup.sh script #1145

@tavin

Description

@tavin

I refer to the code here:

tar --zstd -C "${JENKINS_HOME}" -cf "${BACKUP_TMP_DIR}/${BACKUP_NUMBER}.tar.zstd" \

It's the master branch as of right now.

If you have a job in a folder, the backup tar will end up containing files like this:

jobs/FOLDERNAME/jobs/JOBNAME/config.xml

I believe this is caused by a misuse an unwanted side effect of the tar --anchored switch.

I am providing a PR with a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions