Jenkins: различия между версиями
Материал из noname.com.ua
Перейти к навигацииПерейти к поискуSirmax (обсуждение | вклад) |
Sirmax (обсуждение | вклад) |
||
Строка 4: | Строка 4: | ||
=Jenkins= |
=Jenkins= |
||
==Installation== |
==Installation== |
||
+ | * https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu |
||
+ | |||
+ | Add key: |
||
+ | <PRE> |
||
+ | wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - |
||
+ | OK |
||
+ | </PRE> |
||
+ | |||
+ | Add link to Jenkins Ubuntu repo: |
||
+ | <PRE> |
||
+ | sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | Update repos: |
||
+ | <PRE> |
||
+ | sudo apt-get update |
||
+ | </PRE> |
||
+ | |||
+ | Check in which repo Jenkins package is located. We need this step to be sure we will install Jenkins from correct repo. |
||
+ | <PRE> |
||
+ | apt-cache policy jenkins |
||
+ | jenkins: |
||
+ | Installed: (none) |
||
+ | Candidate: 1.654 |
||
+ | Version table: |
||
+ | 1.654 0 |
||
+ | 500 http://pkg.jenkins-ci.org/debian/ binary/ Packages |
||
+ | </PRE> |
||
+ | |||
+ | Install Jenkins: |
||
+ | <PRE> |
||
+ | # sudo apt-get install jenkins |
||
+ | </PRE> |
||
+ | <PRE> |
||
+ | Reading package lists... Done |
||
+ | Building dependency tree |
||
+ | Reading state information... Done |
||
+ | The following extra packages will be installed: |
||
+ | ca-certificates-java daemon default-jre-headless java-common libasyncns0 |
||
+ | libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libflac8 |
||
+ | libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libnss3-nssdb libogg0 |
||
+ | libpulse0 libsctp1 libsndfile1 libvorbis0a libvorbisenc2 lksctp-tools |
||
+ | openjdk-7-jre-headless tzdata tzdata-java |
||
+ | Suggested packages: |
||
+ | default-jre equivs cups-common liblcms2-utils pulseaudio icedtea-7-jre-jamvm |
||
+ | libnss-mdns sun-java6-fonts fonts-dejavu-extra fonts-ipafont-gothic |
||
+ | fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts-core |
||
+ | ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts |
||
+ | The following NEW packages will be installed: |
||
+ | ca-certificates-java daemon default-jre-headless java-common jenkins |
||
+ | libasyncns0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 |
||
+ | libflac8 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libnss3-nssdb |
||
+ | libogg0 libpulse0 libsctp1 libsndfile1 libvorbis0a libvorbisenc2 |
||
+ | lksctp-tools openjdk-7-jre-headless tzdata-java |
||
+ | The following packages will be upgraded: |
||
+ | tzdata |
||
+ | 1 upgraded, 26 newly installed, 0 to remove and 26 not upgraded. |
||
+ | Need to get 106 MB of archives. |
||
+ | After this operation, 133 MB of additional disk space will be used. |
||
+ | Do you want to continue? [Y/n] Y |
||
+ | </PRE> |
||
==Ldap integration== |
==Ldap integration== |
Версия 13:09, 24 марта 2016
Jenkins
Installation
Add key:
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - OK
Add link to Jenkins Ubuntu repo:
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
Update repos:
sudo apt-get update
Check in which repo Jenkins package is located. We need this step to be sure we will install Jenkins from correct repo.
apt-cache policy jenkins jenkins: Installed: (none) Candidate: 1.654 Version table: 1.654 0 500 http://pkg.jenkins-ci.org/debian/ binary/ Packages
Install Jenkins:
# sudo apt-get install jenkins
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: ca-certificates-java daemon default-jre-headless java-common libasyncns0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libflac8 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libnss3-nssdb libogg0 libpulse0 libsctp1 libsndfile1 libvorbis0a libvorbisenc2 lksctp-tools openjdk-7-jre-headless tzdata tzdata-java Suggested packages: default-jre equivs cups-common liblcms2-utils pulseaudio icedtea-7-jre-jamvm libnss-mdns sun-java6-fonts fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts-core ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts The following NEW packages will be installed: ca-certificates-java daemon default-jre-headless java-common jenkins libasyncns0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libflac8 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libnss3-nssdb libogg0 libpulse0 libsctp1 libsndfile1 libvorbis0a libvorbisenc2 lksctp-tools openjdk-7-jre-headless tzdata-java The following packages will be upgraded: tzdata 1 upgraded, 26 newly installed, 0 to remove and 26 not upgraded. Need to get 106 MB of archives. After this operation, 133 MB of additional disk space will be used. Do you want to continue? [Y/n] Y
Ldap integration
Manage Jenkins -> Configure Global Security --> LDAP