Установка Jenkins Подключение EPEL-репозитария и установка java-openjdk
|
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm |
|
# yum update && yum upgrade# yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel |
|
openjdk version "1.8.0_171" OpenJDK Runtime Environment (build 1.8.0_171-b10) OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode) |
Добавление репозитария Jenkins и его установка
|
# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo |
|
# rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key |
|
# systemctl start jenkins |
|
# systemctl enable jenkins |
Продолжаем установку через WEB-интерфейс
|
http://<Jenkins-server-IP-address>:8080 |
Пароль указан в файле
|
# cat /var/lib/jenkins/secrets/initialAdminPassword |
Просмотр логов Jenkins
|
# tail -f /var/log/jenkins/jenkins.log |
Источник: https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions Установка Maven
|
# cd /opt/ && wget http://mirrors.sonic.net/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz |
|
# tar xvzf apache-maven-*-bin.tar.gz |
|
# rm -f apache-maven-*-bin.tar.gz; mv apache-maven-* maven |
|
# nano /etc/profile.d/maven.sh |
|
export PATH=/opt/maven/bin:${PATH} |
|
# source /etc/profile.d/maven.sh |
|
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) Maven home: /opt/maven Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-862.3.2.el7.x86_64", arch: "amd64", family: "unix" |
в настройках Jenkins указываем […]