jenkins-slave

Jenkins through docker: How to configure own host as agent for jenkins?

允我心安 提交于 2021-01-29 17:13:47
问题 I'm using Jenkins with pipelines on a mac-mini. All builds are working fine with docker agents (backend, frontend, android app, etc) The only thing I haven't been able to achieve is to use my own mac-mini as build-agent/slave for the IOS app (I need to build on OSX). Jenkins itself runs through docker as well, so I would need to connect to the host (the OS of the mac-mini) and use that as an agent... I know one option would be to install jenkins instead of using docker, but I would prefer to

Jenkins Slave Issue - invalid stream header: 099EACED

ⅰ亾dé卋堺 提交于 2020-01-02 04:51:09
问题 Jenkins 2.7.4 was installed in the RedHat Server and Linux Slaves is configured by Selecting "Launch agent via execution of command on master" option. We created a Shell script and it works fine in the Jenkins version 2.7.4. Now we upgraded the Jenkins to 2.121.1. Now the same script throws an error <===[JENKINS REMOTING CAPACITY]===>Exception in thread "main" java.io.StreamCorruptedException: invalid stream header: 099EACED at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java

Jenkins trigger on-demand slaves in dockers

怎甘沉沦 提交于 2019-12-30 10:29:59
问题 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

Jenkins slave cannot connect with master: Incorrect acknowledgement sequence

*爱你&永不变心* 提交于 2019-12-30 05:01:33
问题 After update of our Jenkins master installation to its latest LTS version 2.46.3 one of its slaves (Windows 7 machine, 32-bit) cannot connect with the master. The error we're getting is: java -jar slave.jar -jnlpUrl https://<jenkins-name>/computer/<node-name>/slave-agent.jnlp -secret <secret-value> Jun 22, 2017 1:19:05 PM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: node-name Jun 22, 2017 1:19:05 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running

Docker Jenkins slave wrong character encoding

徘徊边缘 提交于 2019-12-25 09:09:27
问题 I'm using this Jenkins slave docker image, it is based on ubuntu:14.04 I would like to use a String Parameter which contains UTF-8 characters. The charachers like öüóőúűáéí (Hungarian characters) will be replaced to question marks As this ticket mentions I tried to pass -e LANG=hu_HU.UTF-8 and bash -c "locale-gen hu_HU.UTF-8" to docker. I also placed export LANG=hu_HU.UTF-8 to Jenkins user's .bashrc the characters are still replaced. I also tried with en_US.UTF-8 I also tried to do the same

Linux machine failed to connect slave from mac machine connection in Jenkins?

本秂侑毒 提交于 2019-12-23 05:00:49
问题 Installed Jenkins on Linux machine and jenkins hosted on name say jiort04:8080. Created slave name it as mac-slave in Jenkins and launch method used it as Launch agent via Java Web Start Method and necessary configurations are added. However, it failed to connect to slave said logs and error attached below screen-shot. Log ` java.net.UnknownHostException: jiort04 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl

CI with Jenkins: how to force building happen on slaves instead of master?

北城余情 提交于 2019-12-18 11:39:52
问题 I am using Jenkins for CI, I have a master and two slaves, master is running Jenkins and I want only slaves doing the actual building task, is there anywhere I can configure this? I know there is an 'executor', if I change it to 0 on master, probably master won't build anything, but is there any proper way to do this? 回答1: You can set where a job will be run using the "Restrict where this project can be run" option in your job. This setting can be used together with tags you have added to

Jenkins Windows slave connection getting terminated with java.nio.channels.ClosedChannelException

假装没事ソ 提交于 2019-12-13 12:06:34
问题 While connecting to windows machine as slave, i am getting following error i think its some network related issue, but need some help where to start looking or what is a possible solution for this. INFO: Terminated Aug 01, 2017 10:15:54 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 06bcb4519543f5ec83cf9d6da9f6cfbe java.io.IOException: Failed to write to C:\Users\Administrator\.jenkins\cache\jars\06\BCB4519543F5EC83CF9D6DA9F6CFBE.jar at hudson.remoting

env: node: No such file or directory (using jenkings, windows machine, node and a remote web interface)

不打扰是莪最后的温柔 提交于 2019-12-08 13:31:23
问题 Lately I am doing an ios build where I remotely launch a mac slave, using a remote web interface through my IP address. I already tried uninstalling node / npm and reinstalling it, but it still gets the same error after I install cordova. I also checked if my directory for node wasn't wrong and it's fine: I also already tried the solution of putting set +e at the top of my shell script, but after that it still doesn't work. I am already trying to figure this problem out for 5 days and it

Jenkins ssh slave disconnect to make the task continue perform

非 Y 不嫁゛ 提交于 2019-12-08 05:57:53
问题 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? 回答1: 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