Questions tagged [jenkins-slave]

Jenkins supports the "Controller/Agent" mode, where the workload of building projects are delegated to multiple "agent" nodes, allowing a single Jenkins installation to host a large number of projects, or to provide different environments needed for builds/tests.

Jenkins supports the "Controller/Agent" mode, where the workload of building projects are delegated to multiple "agent" nodes, allowing a single Jenkins installation to host a large number of projects, or to provide different environments needed for builds/tests.

##More Info

285 questions
2
votes
0 answers

Jenkins windows slave lose connection continuously with error: ClosedChannelException

Jenkins 2.107.2 Master: Windows Server 2008R2, java version "1.8.0_171" Slave: Windows Server 2016, java version "1.8.0_161" on master I already tried: turn off firewall change 'Power Options': Turn off the display: Never Jenkins: TCP port for…
yueran
  • 43
  • 8
2
votes
1 answer

Failed to create the file while downloading zip file with CURL on Jenkins slave

I am using Jenkins Pipline and Groovy script to download a zip on slave machine of jenkins. Following is my code: pipeline { agent { label '' } stage('Download') { steps { script { …
Sagar
  • 23,903
  • 4
  • 62
  • 62
2
votes
3 answers

Jenkins slave with custom docker image is not connecting with master in minikube

Summary: Jenkins in K8s minikkube works fine and scales well in case of default jnlp agent but stuck with "Waiting for agent to connect" in case of custom jnlp image. Detailed description: I'm running the local minikube with Jenkins setup.…
Yuri Bushnev
  • 567
  • 6
  • 11
2
votes
2 answers

Docker Containers as Jenkins Slave

I want to know are the following scenarios possible , please help me out:- Scenario 1:- I have my local system as a Jenkins Master and Every time I need A slave to run my automation test script , a docker container spins up as a Jenkins slave and my…
2
votes
0 answers

Creating Jenkins slave throws error

I am getting below error while creating new node on Jenkins(2.84) running on Windows 2012 server. org.apache.commons.jelly.JellyTagException:…
user1550159
  • 1,197
  • 3
  • 19
  • 36
2
votes
1 answer

How to link jenkins pipeline job to label on docker slaves containers

I'm looking for a way to run Jenkins jobs/build inside Jenkins slaves, dynamically (on-demand) started by docker. The scenario is the following: I have one physical slave (node name: jenkins-slave-01 and label: mySlave) which I can easily trigger…
ETeodorus
  • 21
  • 1
  • 2
2
votes
1 answer

Can each of Jenkins-slave(kubernetes pod) to be bound to one build job while keep it alive even finished the job

We are using kubernetes plugin for Jenkins to construct a special CI system. We want to achieve that: For a given build job(named job_A), it will be built more than one time; We hope this job job_A to be bound to a specific jenkins-slave(named…
terry
  • 43
  • 6
2
votes
0 answers

Jenkins taking long time to detect slave disconnection

I am trying to configure jenkins to reschedule a job if the job failed because the slave it was running on died (network issues, power issue etc). My jenkins has a parent(pipeline) job that calls many child build jobs. The issue it that a build job…
2
votes
1 answer

Jenkins Slave Prints message Cannot contact slave-host: java.io.IOException: Remote call on Channel to /10.0.2.2 failed

I have Jenkins 2 Master and Jenkins 2 Slave. When I start build it is successful but when I check the build console I can see multiple lines with below message: Cannot contact slave-host: java.io.IOException: Remote call on Channel to /10.0.2.2…
Jaydeep Patel
  • 2,394
  • 1
  • 21
  • 27
2
votes
2 answers

Jenkins Pipeline: Get build output from slave agent

Background Let's say I have two jobs, one 'Pipeline Job' and one 'Build Job'. The 'Pipeline Job' runs on master and is of course a pipeline (using groovy). Then for a build part in the pipeline I use a slave running on Windows, the 'Build Job',…
hilms
  • 53
  • 1
  • 6
2
votes
2 answers

Use stash in Jenkins pipeline without node

I have a Jenkins pipeline looking like this stage 'build app' build 'app-build' stash 'app-stash' stage 'build container' unstash 'app-stash' build 'container-build' The builds app-build and container-build obtain new nodes from our Kubernetes…
Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109
2
votes
0 answers

How can I add Jenkins-Slave node dynamically when running Jenkins Build?

I want to create a parameterized pipeline build which have an input of IP/Hostname. When I run the Jenkins Build, It should connect to the IP/Hostname and configure the machine as Jenkins-Slave. And the next job should run on the Slave machine. Is…
2
votes
1 answer

Jenkins schedule slave node availability

We have a number of machines that we would like to use as slave nodes for Jenkins, but only in certain time intervals (i.e. not during working hours). Is it possible to configure a slave node to be used as a slave for builds in particular time…
Spacemoose
  • 3,856
  • 1
  • 27
  • 48
2
votes
0 answers

Running Jenkins Azure Slave jobs as a specific Windows user (not 'Local System')

We have an MSBuild we're running on Jenkins using the Azure Slave Plugin. The jobs seem to run on the slave as user nt authority\system. How can we change this to a user of our choice? So far, we are using default init script for the slave VMs (the…
Iain
  • 1,797
  • 1
  • 20
  • 38
2
votes
1 answer

xcodebuild: error: './*****.xcworkspace' is not a workspace file

We are running a Jenkins-master on Windows Server with an iOS Job, which runs on a mac os x slave. The slave was running well on Mac OS X Yosemite but after upgrading to El Capitan, the build was broken. The issue is that xcodebuild does not…
L6Echo
  • 29
  • 7