This file contains hidden or 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
| /usr/sbin/groupadd -g 30119 jenkins | |
| /usr/sbin/useradd -u 30119 -g jenkins jenkins | |
| mkdir /home/jenkins | |
| # Download Play! to /home/jenkins | |
| chown -R jenkins. /home/jenkins |
This file contains hidden or 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
| $ sudo service jenkins stop | |
| $ sudo jenkins_bak.sh restore /media/backup/jenkins-150123.tar | |
| $ sudo service jenkins start |
This file contains hidden or 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 | |
| # directory that contains the jenkins.war | |
| JENKINS_WAR_DIR=/usr/share/jenkins | |
| # Absolute path the jenkins.war | |
| JENKINS_WAR=${JENKINS_WAR_DIR}/jenkins.war | |
| # Absolute path the jenkins.war for backup | |
| JENKINS_BACKUP_WAR=/tmp/jenkins.war.bak |
This file contains hidden or 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
| ORIGINAL_JENKINS_SERVER= | |
| ORIGINAL_SERVER_USER= | |
| NEW_JENKINS_SERVER= | |
| NEW_SERVER_USER= | |
| # ON THE ORIGINAL JENKINS SERVER | |
| ssh $ORIGINAL_SERVER_USER@$ORIGINAL_JENKINS_SERVER | |
| cd /var/lib/jenkins/ | |
| for i in `ls jobs`; do echo "jobs/$i/config.xml";done > config.totar |
This file contains hidden or 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
| import tornado.web | |
| class BaseHandler(tornado.web.RequestHandler): | |
| pass | |
| def MetaClassFactory(function): | |
| class MetaClass(type): | |
| def __new__(meta, classname, bases, classDict): | |
| newClassDict = {} |
NewerOlder