jenkins-slave

JNPL port is missing from Configure Global Security in Jenkins

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 23:25:24
问题 I'm creating a windows slave in Jenkins and for that, I need to use the Java Web Start as a launch method in slave configuration. I'm aware that to view this option in slave configuration, we need to change the setting in Manage Jenkins>Configure global security>Agents>TCP JNLP AGents to Random from disabled. But in my case, I'm not able to see the JNLP port agent, the option visible is "TCP port for inbound agents" instead of "TCP port for JNLP agents". I've installed JDK in Manage Jenkins

Jenkins ssh slave disconnect to make the task continue perform

自古美人都是妖i 提交于 2019-12-06 15:57:30
I have a iOS archive job on a mac slave which will take a long time sometimes 30min The question is the ssh long connection often disconnect and caused the task fail. Now I want to ask how can I do to avoid this question? What I'm looking for is when the long connection disconnect but the task continue to perform. How can I do? Adding a keepAlive option is a feature request since 2014 As proposed workarounds, this ticket includes: Change the /etc/ssh/ssh_config by appending the following line to the end of this file. This tells the ssh client to send nop command periodically to avoid the ssh

Jenkins: no tool named MSBuild found

故事扮演 提交于 2019-12-03 13:08:11
问题 Setting up a Pipeline build in Jenkins (Jenkins 2.6), copying the sample script for a git-based build gives: "no tool named MSBuild found". I have set MSBuild Tool in Manage Jenkins -> Global Tool Configuration . I am running pipeline on the slave node. In Slave configuration, I have set MSBuild tool path in Node Properties -> Tool Locations . While build process it is not able to get MSBuild tool path, if i run same source without pipeline (without using Jenkinsfile) it works fine. Please

Install Jenkins slave as a Windows service in command line

怎甘沉沦 提交于 2019-12-03 13:03:45
问题 I have been looking a lot on Google on how to install the service in command line (so without manual interaction) but I am stuck on how to get the jenkins-slave.exe I found those instruction https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+as+a+Windows+service but I can't figure how to get the executable. I have downloaded and run the slave.jar with the right key, which connects the slave, but the exe is not generated. I found this page https://github.com/kohsuke/winsw/blob/master

Creating a Jenkins Slave via Java Web Start

被刻印的时光 ゝ 提交于 2019-12-03 11:36:17
问题 I have already had a working Master - Slave Configuration on my Jenkins, but an update broke it so I had to reinstall it (didn't have a backup yet). But now after reinstalling Jenkins I don't get it to work anymore. When I go on Manage Jenkins -> Node Management I can only add new "permanent" Agents and not the old "Dumb Slave" Node I used to have. Was there an update or something so this doesn't work anymore? Also when using this permanent Agent the help ? shows me the option "Launch agent

Installing Jenkins Slave as Service on win8.1 and win10

廉价感情. 提交于 2019-12-03 06:47:58
问题 I am trying to install Jenkins slave service after starting the slave via web start. I get the following error when it tries to install on windows 10 and windows 8.1. [JenkinsWorkDirectory]$ c:\JenkinsWorkDirectory\jenkins-slave.exe install WMI.WmiException:AccessDenied at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args) at WMI.Win32ServicesProxy.Create(String, String, String, ServiceType, ErrorControl, StartMode, Boolean, String, String, String[]) at winsw

Jenkins: no tool named MSBuild found

故事扮演 提交于 2019-12-03 03:18:32
Setting up a Pipeline build in Jenkins (Jenkins 2.6), copying the sample script for a git-based build gives: "no tool named MSBuild found". I have set MSBuild Tool in Manage Jenkins -> Global Tool Configuration . I am running pipeline on the slave node. In Slave configuration, I have set MSBuild tool path in Node Properties -> Tool Locations . While build process it is not able to get MSBuild tool path, if i run same source without pipeline (without using Jenkinsfile) it works fine. Please see Jenkinsfile Syntax pipeline { agent { label 'win-slave-node' } stages { stage('build') { steps { bat

Install Jenkins slave as a Windows service in command line

。_饼干妹妹 提交于 2019-12-03 03:13:11
I have been looking a lot on Google on how to install the service in command line (so without manual interaction) but I am stuck on how to get the jenkins-slave.exe I found those instruction https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+as+a+Windows+service but I can't figure how to get the executable. I have downloaded and run the slave.jar with the right key, which connects the slave, but the exe is not generated. I found this page https://github.com/kohsuke/winsw/blob/master/doc/installation.md#winsw-installation-guide to install it manually but that sounds like re-invented the

Creating a Jenkins Slave via Java Web Start

醉酒当歌 提交于 2019-12-03 01:09:23
I have already had a working Master - Slave Configuration on my Jenkins, but an update broke it so I had to reinstall it (didn't have a backup yet). But now after reinstalling Jenkins I don't get it to work anymore. When I go on Manage Jenkins -> Node Management I can only add new "permanent" Agents and not the old "Dumb Slave" Node I used to have. Was there an update or something so this doesn't work anymore? Also when using this permanent Agent the help ? shows me the option "Launch agent via Java Web Start" on the Launch method field - but in the drop down it is not available. Did I make

Jenkins trigger on-demand slaves in dockers

好久不见. 提交于 2019-12-01 08:57:07
I'm looking for a way to run Jenkins jobs/build inside Jenkins slaves, dynamically (on-demand) started docker. Attaching schema for visual understanding. What I'm actually looking for and my flow looks like: 1) Triggering Jenkins job (manually/git/gerrit) 2) Jenkins master (running in docker) starts slave machine docker (and pass script/instructions of the build) 3) Build is running on Jenkins slave (or slaves if parallel/pipeline) 4) Result returned to Jenkins master 5) Jenkins slave docker stops Is it possible to do it this way? Docker slave image creation steps like installing openssh, user