This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
инструмент_jenkins [2024/09/08 17:39] val |
инструмент_jenkins [2024/11/14 12:47] (current) val [Установка] |
||
---|---|---|---|
Line 6: | Line 6: | ||
===== Установка ===== | ===== Установка ===== | ||
- | * [[Сервис JRE]] | + | * [[Сервис JRE]] |
* [[https://www.jenkins.io/doc/book/installing/linux/|Debian/Ubuntu Long Term Support release]] | * [[https://www.jenkins.io/doc/book/installing/linux/|Debian/Ubuntu Long Term Support release]] | ||
* [[https://pkg.jenkins.io/debian-stable/]] | * [[https://pkg.jenkins.io/debian-stable/]] | ||
+ | |||
+ | * [[https://stackoverflow.com/questions/63635421/install-suggested-plugins-for-jenkins|Install suggested plugins for jenkins]] | ||
==== !!! Обратитесь к преподавателю !!! ==== | ==== !!! Обратитесь к преподавателю !!! ==== | ||
Line 21: | Line 24: | ||
# apt-get update | # apt-get update | ||
- | # apt-get install fontconfig openjdk-17-jre | + | # apt-get install fontconfig default-jre-headless |
# apt-get install jenkins | # apt-get install jenkins | ||
Line 53: | Line 56: | ||
* [[Сервис JRE]] | * [[Сервис JRE]] | ||
- | |||
- | ==== Агент подключается к контроллеру ==== | ||
- | |||
- | * !!! В текущей версии нужно: Dashboard -> Manage Jenkins -> Security -> TCP port for inbound agents: Random | ||
<code> | <code> | ||
Line 62: | Line 61: | ||
</code> | </code> | ||
* [[Пакет sudo]] | * [[Пакет sudo]] | ||
+ | ==== Агент подключается к контроллеру ==== | ||
+ | |||
+ | * !!! В текущей версии нужно: Dashboard -> Manage Jenkins -> Security -> TCP port for inbound agents: Random | ||
+ | * Требуется [[https://plugins.jenkins.io/instance-identity/|Instance Identity]] plugin | ||
+ | |||
+ | |||
<code> | <code> | ||
Dashboard->Set up an agent->Create a new node | Dashboard->Set up an agent->Create a new node | ||
Line 89: | Line 94: | ||
==== Запуск агента через SSH ==== | ==== Запуск агента через SSH ==== | ||
- | * [[Пакет sudo]] | + | * Требуется [[https://plugins.jenkins.io/ssh-slaves/|SSH Build Agents]] plugin |
+ | <code> | ||
+ | gate# passwd jenkins | ||
+ | </code> | ||
<code> | <code> | ||
Dashboard->Set up an agent->Create a new node | Dashboard->Set up an agent->Create a new node | ||
Line 96: | Line 104: | ||
Type: Permanent Agent | Type: Permanent Agent | ||
... | ... | ||
- | Remote root directory: /home/student/ | + | Remote root directory: /home/jenkins/ |
... | ... | ||
Способ запуска | Способ запуска |