All Projects → jenkinsci → windows-slave-installer-module

jenkinsci / windows-slave-installer-module

Licence: other
Windows Agent Installer module for Jenkins

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to windows-slave-installer-module

mailer-plugin
This plugin allows you to configure email notifications for build results
Stars: ✭ 35 (+191.67%)
Mutual labels:  jenkins
event-recommender-festa
[SI -> 오늘회, 펫프렌드 이직, 연봉 35% 상승] 내 주변지역의 이벤트와 행사를 추천해주는 서비스
Stars: ✭ 64 (+433.33%)
Mutual labels:  jenkins
learn-ansible-and-jenkins-in-30-days
Ansible + Jenkins in 30 days tutorial.
Stars: ✭ 35 (+191.67%)
Mutual labels:  jenkins
cloud-s4-sdk-pipeline
The Cloud SDK pipeline uses the Cloud SDK continuous delivery server for building, checking, and deploying extension applications. Projects based on the SAP Cloud SDK archetype will automatically use this pipeline.
Stars: ✭ 65 (+441.67%)
Mutual labels:  jenkins
cjp-demo-environment
CloudBees CI Demo based on Docker Compose
Stars: ✭ 23 (+91.67%)
Mutual labels:  jenkins
Containerization-Automation
Study and Use of Containers and Automation Tools
Stars: ✭ 45 (+275%)
Mutual labels:  jenkins
kubetools
Kubetools - Curated List of Kubernetes Tools
Stars: ✭ 674 (+5516.67%)
Mutual labels:  jenkins
caesar
持续集成
Stars: ✭ 40 (+233.33%)
Mutual labels:  jenkins
jira-trigger-plugin
Triggers a build when a certain condition is matched in JIRA
Stars: ✭ 112 (+833.33%)
Mutual labels:  jenkins
devops-jenkins-box-template
Bootstrap template to provision your agency own Jenkins server
Stars: ✭ 22 (+83.33%)
Mutual labels:  jenkins
black-postoffice
[무신사 신입] 익명으로 편하게 고민, 일상을 공유하는 소셜 네트워크 서비스입니다.
Stars: ✭ 31 (+158.33%)
Mutual labels:  jenkins
TopshelfDemoService
A daemon service demonstration application with Topshelf. 这是一个基于C#/.NET+Topshelf 实现的Windows服务程序。
Stars: ✭ 33 (+175%)
Mutual labels:  windows-service
SeleniumTDD
A Selenium TDD framework that incorporates key features of Selenium and TestNG which can be used to create web-based automation scripts.
Stars: ✭ 23 (+91.67%)
Mutual labels:  jenkins
Real Time Social Media Mining
DevOps pipeline for Real Time Social/Web Mining
Stars: ✭ 22 (+83.33%)
Mutual labels:  jenkins
config-file-provider-plugin
Jenkins plugin to administrate the maven settings (settings.xml).
Stars: ✭ 43 (+258.33%)
Mutual labels:  jenkins
aliyun-oss-uploader-plugin
Aliyun/AliCloud OSS uploader
Stars: ✭ 26 (+116.67%)
Mutual labels:  jenkins
up
UP - Ultimate Provisioner CLI
Stars: ✭ 43 (+258.33%)
Mutual labels:  jenkins
matrix-auth-plugin
Matrix-based authorization strategies for Jenkins
Stars: ✭ 40 (+233.33%)
Mutual labels:  jenkins
jenkins-stack-docker
Docker-compose version of jenkins-stack-kubernetes
Stars: ✭ 135 (+1025%)
Mutual labels:  jenkins
Hands-On-Serverless-Applications-with-Go
Hands-On Serverless Applications with Go, published by Packt.
Stars: ✭ 92 (+666.67%)
Mutual labels:  jenkins

Windows Agent Installer module for Jenkins

This module is a part of the Jenkins core, which provides features for managing agents as Windows services.

Provided features:

  • Installation agents as Windows services, powered by the Windows Service Wrapper (WinSW).
  • GUI option for the JNLP agents, which adds the Install as a service menu option.
  • Automatic upgrade of Windows service wrapper versions to keep them aligned with the version from this module.

Changelog

See the changelog here.

Installation

System requirements

Automatic

Once you start a JNLP agents on Windows in the GUI mode (e.g. via Java WebStart), It will display the Install as a service menu option once the Jenkins master finishes the agent configuration.

  • The agent will be installed if your Windows account has enough permissions to install Windows Services and to access the System and Application event logs.
  • If the current account does not have enough permissions, the installer will prompt for permission elevation.

Manual

You can setup the agent service manually by following the WinSW Installation Guide.

More info

See also the old installation guide on Jenkins Wiki (link).

Upgrading old agents

This section provides information about upgrading Jenkins agents installed as Windows services. In order to apply the new features, you may need to...

  • Upgrade the WinSW executable (manually or automatically)
  • Upgrade the WinSW configuration (manually)

Upgrading Windows Service Wrapper

Windows Agent Installer module may be able to automatically upgrade the agent in particular cases.

Automatic upgrade

  1. Upgrade Jenkins to the version, which provides this module
  2. Jenkins is expected to automatically upgrade jenkins-slave.exe executables if...
  • The agent is connected to the Jenkins master
  • If the agent is not connected, the update will be postponed till the agent connects to the master
  • WinSW executable is located in REMOTE_ROOT_DIR/jenkins-slave.exe and writable by the agent
  • WinSW executable is writable as well as REMOTE_ROOT_DIR/jenkins-slave.exe.new and REMOTE_ROOT_DIR/jenkins-slave.exe.bak files
  1. If the upgrade happens, you should be able to see the message in the Agent log in Jenkins Web UI
  2. Once upgrade is done, the changes will be applied on the next Windows service restart

Enabling Automatic upgrade

Windows Service Wrapper

The wrapper automatic upgrade is enabled by default.

Remoting executable (slave.jar)

Automatic upgrade is enabled for all newly created agents connected via HTTPs. You may need to enable automatic upgrades manually for agents installed as a service before Jenkins 2.50 OR for agents connected to the master over HTTP. In this case, open jenkins-slave.xml and add the following line to enable automatic upgrades:

<download from="${JENKINS_URL}/jnlpJars/slave.jar" to="%BASE%\slave.jar"/>

Disabling Automatic upgrade

Windows Service Wrapper

In some cases Jenkins administrators may want to update WinSW to a version higher than the version provided by this module. By default it is not possible if the executable is named as jenkins-slave.exe, because the module performs automatic update.

Starting from version 2.9 (Jenkins 2.60), it is possible to disable such automatic upgrades by setting the org.jenkinsci.modules.windows_slave_installer.disableAutoUpdate System Property to true.

Remoting executable (slave.jar)

To disable the automatic Remoting executable upgrade, open jenkins-slave.xml and remove the following line:

<download from="${JENKINS_URL}/jnlpJars/slave.jar" to="%BASE%\slave.jar"/>

Manual upgrade

Manual upgrade may be required if the agent does not comply with the requirements mentioned above.

Please note that Jenkins master may override the WinSW executable if it is located in REMOTE_ROOT_DIR/jenkins-slave.exe. It possible to disable the automatic upgrade only by using another path or by making the executable non-writable by the Windows agent.

  1. Download the new WinSW release from GitHub Releases or NuGet.
  • Depending on the .NET Framework version in your system, you can use WinSW.NET2.exe or WinSW.NET4.exe executable.
  • If you need to run the WinSW.NET2.exe executable on .NET 4 or above, see this guide.
  1. Replace the WinSW executable on your agent machines by the new version.

Upgrading agent configuration

Windows Agent Installer module never updates WinSW configuration files, but these files enable particular features on new agent installations. For example 1.7 introduces Runaway Process Killer and Automatic JNLP agent upgrade. It is advised to keep configurations up to date on all agents.

In order to update the configurations you, need to edit the XML configuration files (e.g. jenkins-slave.xml).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].