Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jenkins Jobs backup script
$items = get-childitem jobs
foreach ($item in $items)
{
mkdir -Force "jobs_backup/jobs_config/$item/"
cp "jobs/$item/config.xml" "jobs_backup/jobs_config/$item/"
}
cd jobs_backup
svn add * --force
svn commit -m "Automated Jobs Backup"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.