Comments (15)
Having the same issue, spawning slave pods up until it hits container cap.
from docker-agent.
So it has been caused by jenkinsci/docker-inbound-agent#24 from @carlossg. Who is also a maintainer of Kubernetes. The most straightforward way would be to skip parameters if the Env Vars are specified, but it needs ack from @carlossg . I am not sure which use-cases he had in mind
from docker-agent.
I didn't expect people would pass both args and env vars, so I guess it needs to check for that and use only args in that case
from docker-agent.
@carlossg Yes, this is also my hotfix plan. Will you be able to implement it and test with your Kubernetes stuff?
from docker-agent.
I didn't expect people would pass both args and env vars, so I guess it needs to check for that and use only args in that case
It happens even when I define no env vars.
from docker-agent.
It's hard to say what is the"root cause". a) the kubernetes plugin which adds args AND env variables or b) the jnlp-slave!?
Currently, when using the kubernetes plugin, I have to explicitly add "containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:2.62-alpine', args: '${computer.jnlpmac} ${computer.name}')" to my podTemplate.
The OLD jenkinsci/jnlp-slave:2.62-alpine ist still working.
Does anybody has a better workaround?
from docker-agent.
Seems @carlossg is not available to fix that. Doing it on my own.
from docker-agent.
@TGippert we started having this issue after the docker image got updated I believe. We solved it the same way you described: just freezing docker image version. Not sure there is a better workaround.
from docker-agent.
Created the pull request: jenkinsci/docker-inbound-agent#33
from docker-agent.
Both latest
and alpine
images have been updated, please confirm the fix works for you
from docker-agent.
Great job! Thanks 👍
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:alpine', args: '${computer.jnlpmac} ${computer.name}', alwaysPullImage: true)
writes the following into the output of the jnlp agent:
Warning: SECRET is defined twice in command-line arguments and the environment variable
Warning: AGENT_NAME is defined twice in command-line arguments and the environment variable
So I decided to use the containerTemplate without args
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:alpine', alwaysPullImage: true)
from docker-agent.
@TGippert warnings are "as designed" from this repo PoV, because it is generally not an expected configuration.
@carlossg will still need to triangulate and fix the issue on the Kubernetes plugin side. Likely it is a containerTemplate()
documentation update
from docker-agent.
@oleg-nenashev confirmed working.
I had to add jnlp
containerTemplate
to my podTemplate
with alwaysPullImage: true
since my k8s cluster has cached old alpine
image.
from docker-agent.
@thefron Will add more tags as a part of #729
from docker-agent.
Since Google pointed me here and others might come as well, the jenkinsci/jnlp-slave
has been deprecated now. You need to use jenkins/jnlp-slave:<tag>
, where tag can be either: alpine (88MB) or latest (296MB). https://hub.docker.com/r/jenkins/jnlp-slave/tags/
from docker-agent.
Related Issues (20)
- Build both agent and inbound-agent container images in this repository HOT 13
- Windows agent does not work on AWS Fargate HOT 5
- Docker image for docker-inbound-agent from debian bullseye distribution based agent docker image HOT 1
- Usage: is "java -jar /usr/share/jenkins/agent.jar" up to date? HOT 12
- Add doc how to build the different images
- Rename this repository to reflect that it concerns both `agent` and `inbound-agent`? HOT 1
- NoClassDefFoundError: org/eclipse/jgit/internal/JGitText HOT 11
- README_agent.md links to dockerhub HOT 2
- updatecli is not working for updates to JDKs HOT 5
- Images are missing from the inbound-agent README
- DockerHub Description automated process is broken since 2 months (at least?) HOT 8
- [Windows] ci.jenkins.io build fails since 3 days HOT 5
- How can I build docker images from inside jenkins/agent HOT 1
- Jenkins agent exits immediately without any logs and error code 159 (RPI 4, aarch64, Raspbian 64 bit) HOT 27
- Generate smaller java runtime with jlink in Windows images HOT 2
- JDK 21 preview updatecli manifest is failing HOT 13
- Move JDK1 `linux/s390x` out of preview HOT 1
- Unable to build an extension of inbound-agent:*ltsc2019 HOT 3
- Add building documentation
- jenkins-agent.ps1 is missing in jenkins/agent:jdk17-nanoserver-ltsc2022 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-agent.