由於老闆不給放程式碼到 github ,我們只好來用 Jenkins ,其實相當方便
1. http://jenkins-ci.org/ download jenkins.war
2. java -jar jenkins.war to launch jenkins
3. goto http://localhost:8080 to setup a new project
4. install plugin Violations for pylint report and Cobertura for coverage report.
5. install Git plugin and restart
6.
Install jenkins on a new RedHat/CentOS server
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions
sudo yum install java-1.6.0-openjdk
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
Run jenkins service
sudo service jenkins start/stop/restart
沒有留言:
張貼留言