1. install jenkins
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
java -jar /usr/share/jenkins/jenkins.war --httpPort=8888 (open firewall)
http://aaa.com:8888
2. change authentication
http://aaa.com:8888/configureSecurity/
Jenkins’ own user database
Matrix-based security
3. install ant
wget http://www.apache.org/dist/ant/binaries/apache-ant-1.9.3-bin.tar.gz
tar zxf apache-ant-1.9.3-bin.tar.gz
4. vi .bachrc
export JAVA_HOME=~~
export ANT_HOME=~~
5. install plug-ins
Github OAuth Plugin
GitHub Plugin
Git Client Plugin
GitHub API Plugin
6. github connection
ssh-keygen
cd .ssh
cat id_rsa.pub
copy string and register it on githup's ssh
7. making project
new item
Build a free-style software project
configuration
ex) Git - https://github.com/doohee323/angularPattern.git
- Add : register ssh strings
Build
targets : all
(need build.xml in the project's source)
8. launch
java -jar /usr/share/jenkins/jenkins.war --httpPort=8888 &
Comments
Post a Comment