Created
December 12, 2013 04:39
-
-
Save nicopaez/7923259 to your computer and use it in GitHub Desktop.
Jenkins Jobs backup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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