From e698d1de41d4311bf5f8b1d2c40b591109e696e2 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Wed, 8 Mar 2017 16:19:21 +0100 Subject: [PATCH] Update Windows Agent Installer to 1.7 and WinSW to 2.0.2 (#2765) ### WinSW changes The update includes many fixes and improvements, the full list is provided in the [WinSW changelog](https://github.com/kohsuke/winsw/blob/master/CHANGELOG.md). There are several issues referenced in Jenkins bugtracker: * [JENKINS-22692](https://issues.jenkins-ci.org/browse/JENKINS-22692) - Connection reset issues when WinSW gets terminated due to the system shutdown * [JENKINS-23487](https://issues.jenkins-ci.org/browse/JENKINS-23487)- Support of shared directories in WinSW * [JENKINS-39231](https://issues.jenkins-ci.org/browse/JENKINS-39231) - Enable Runaway Process Killer by default * [JENKINS-39237](https://issues.jenkins-ci.org/browse/JENKINS-39237) - Auto-upgrade of JNLP agent versions on the slaves ### Windows Agent Installer changes * Adapt the default configurations to pick fixes above * Slave => Agent renaming where possible ### Jenkins core changes * Modify the configuration template, reference advanced options * Enable Runaway Process Killer by default * Update Windows Agent Installer to 1.7 * Remove the obsolete jenkins-slave.xml file from the core. Now it is within windows-slave-installer * Use the deployed Snapshot for CI * Pick the release version of windows-slave-installer-1.7 --- core/pom.xml | 2 +- .../windows-service/jenkins-slave.xml | 49 ------------------- .../resources/windows-service/jenkins.xml | 25 ++++++++-- war/pom.xml | 2 +- 4 files changed, 24 insertions(+), 54 deletions(-) delete mode 100644 core/src/main/resources/windows-service/jenkins-slave.xml diff --git a/core/pom.xml b/core/pom.xml index 6feb9ec997..9a4179653d 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -755,7 +755,7 @@ THE SOFTWARE. com.sun.winsw winsw - 1.16 + 2.0.2 bin exe ${project.build.outputDirectory}/windows-service diff --git a/core/src/main/resources/windows-service/jenkins-slave.xml b/core/src/main/resources/windows-service/jenkins-slave.xml deleted file mode 100644 index b4d3bf58f2..0000000000 --- a/core/src/main/resources/windows-service/jenkins-slave.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - @ID@ - Jenkins Slave - This service runs a slave for Jenkins continuous integration system. - - @JAVA@ - -Xrs @VMARGS@ -jar "%BASE%\slave.jar" @ARGS@ - - rotate - - - diff --git a/core/src/main/resources/windows-service/jenkins.xml b/core/src/main/resources/windows-service/jenkins.xml index 2bc1e79c4e..30f22a98fe 100644 --- a/core/src/main/resources/windows-service/jenkins.xml +++ b/core/src/main/resources/windows-service/jenkins.xml @@ -1,7 +1,7 @@ + + + + %BASE%\jenkins.pid + 10000 + false + + + + + diff --git a/war/pom.xml b/war/pom.xml index 2cb82f0a9a..c3b3e0d699 100644 --- a/war/pom.xml +++ b/war/pom.xml @@ -114,7 +114,7 @@ THE SOFTWARE. org.jenkins-ci.modules windows-slave-installer - 1.6 + 1.7 org.jenkins-ci.modules -- GitLab