инструмент_jenkins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
инструмент_jenkins [2024/09/08 17:13]
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 51: Line 54:
  
   * [[https://​medium.com/​@med446/​setting-up-a-jenkins-slave-a7000358c557|Setting up a Jenkins Agent]]   * [[https://​medium.com/​@med446/​setting-up-a-jenkins-slave-a7000358c557|Setting up a Jenkins Agent]]
-  * [[https://​www.jenkins.io/​blog/​2022/​12/​27/​run-jenkins-agent-as-a-service/​|Create a new Jenkins node, and run your Jenkins agent as a service]]+
   * [[Сервис JRE]]   * [[Сервис JRE]]
- 
-  * !!! В текущей версии нужно: Dashboard -> Manage Jenkins -> Security -> TCP port for inbound agents: Random 
  
 <​code>​ <​code>​
Line 60: 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 82: Line 89:
 </​code>​ </​code>​
  
 +  * [[https://​www.jenkins.io/​blog/​2022/​12/​27/​run-jenkins-agent-as-a-service/​|Create a new Jenkins node, and run your Jenkins agent as a service]]
   * [[Управление сервисами в Linux#​Система загрузки Systemd]]   * [[Управление сервисами в Linux#​Система загрузки Systemd]]
 +
 +==== Запуск агента через SSH ====
 +
 +  * Требуется [[https://​plugins.jenkins.io/​ssh-slaves/​|SSH Build Agents]] plugin
 +
 +<​code>​
 +gate# passwd jenkins
 +</​code>​
 +<​code>​
 +Dashboard->​Set up an agent->​Create a new node 
 +  Node name: gate
 +  Type: Permanent Agent
 +  ...
 +  Remote root directory: /​home/​jenkins/​
 +  ...
 +  Способ запуска
 +    Launch Agent via SSH
 +  ...
 +  Host: gate
 +  Credentials ...
 +  Host Key Verification Strategy: Non ...
 +  ...
 +</​code>​
 +
 ===== Примеры проектов/​заданий ===== ===== Примеры проектов/​заданий =====
  
инструмент_jenkins.1725804786.txt.gz · Last modified: 2024/09/08 17:13 by val