Created
August 15, 2016 02:57
-
-
Save kenzo0107/45731991b6462dd56a93ee9895215129 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# builds全て削除 | |
rm -rf /var/lib/jenkins/jobs/*/builds | |
# nextBuildNumber削除 | |
for i in `ls /var/lib/jenkins/jobs/*/nextBuildNumber` ; do echo "1" > $i ;done | |
# Jenkins 再起動 | |
sudo /etc/init.d/jenkins restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment