Questions tagged [jenkins-kubernetes]
49 questions
6
votes
1 answer
PersistentVolumeClaim workspace for jenkins slave
I'm trying to keep my workspace in PersistentVolumeClaim by using kubernetes-plugin
I've created PV and PVC and I've stored my files on local disk. This pipeline has worked fine before but now workspace's are not created anymore on local disk.
Here…

airdata
- 577
- 1
- 7
- 23
5
votes
1 answer
How to kill a multi-container pod if one container fails?
I'm using Jenkins Kubernetes Plugin which starts Pods in a Kubernetes Cluster which serve as Jenkins agents. The pods contain 3 containers in order to provide the slave logic, a Docker socket as well as the gcloud command line tool.
The usual…

Kalle Richter
- 8,008
- 26
- 77
- 177
5
votes
3 answers
How to run parallel stages in isolated pods for a declarative jenkins pipeline
I'm trying to run some end-to-end tests in parallel and on DIFFERENT kubernetes pods on a declarative jenkins pipeline, jenkins however seems to attempt running the parallel stages on the SAME kubernetes pod. This leads to database deadlocks since…

martinkaburu
- 487
- 6
- 18
3
votes
1 answer
Certificate issue for launching kubernetes pods for Jenkins (hosted outside of that kubernetes cluster)
I have been trying to configure jenkins kubernetes cloud agents on my existing jenkins setup (which is hosted outside k8s cluster).
My jenkins is hosted in Google Cloud Platform in a Windows VM. It is exposed to internet and we have a ssl…

ashkaps
- 61
- 6
3
votes
0 answers
'java.net.SocketException: Socket closed' exception in the jenkins jobs execution
we are using Kubernetes plugin to spin up the slaves to build the projects.
We have a jenkins jobs that is scheduled to run on the kubernetes through jenkins k8 plugin. This job has all the shell script in various stages.
Jenkins master is on a…

Rahul Mohan
- 493
- 3
- 5
- 18
2
votes
1 answer
Using Parameters in yamlFile of kubernetes agent in jenkins decorative pipeline
I have a shared yaml file for multiple pipelines and I would like to parameterize the tag of one of the images in the yaml file.
What would be the simplest way to do this? At the moment I am maintaining multiple KubernetesPods.yaml, such as…

Thomas Teece
- 21
- 1
2
votes
0 answers
Occassional Unable to mount volumes for pod when mounting nfs persistent volume claim with ReadWriteMany permissions
I've followed this article to setup a NFS server on GKE so that I can mount a ReadWriteMany pvc on many pods.
These pods are jenkins-slave agents that are created and destroyed continuously as needed.
The point is sometimes I can see several pods…

codependent
- 23,193
- 31
- 166
- 308
2
votes
1 answer
Load agent dynamically in declarative Jenkinsfile
I would like to know if it's possible to configure the global agent dynamically.
I need to run my pipeline in different Jenkins environments running on Kubernetes or VMs.
When I have to run pipeline in VMs, I need to use the docker agent while it's…

shenobi
- 103
- 1
- 2
- 7
1
vote
2 answers
Jenkins Git plugin cannot obtain ~/.ssh/config file
I'm using helm Jenkins chart
Pod template for agent
jenkins:
clouds:
- kubernetes:
name: "kubernetes"
serverUrl: "https://kubernetes.default"
skipTlsVerify: true
…

Артем Черемісін
- 133
- 1
- 8
1
vote
0 answers
Testcontainers fail with Docker must be present in order for testcontainers to work properly on GKE with containerd nodes
I'm preparing our GKE clusters for a future update to Kubernetes 1.24. This version removes dockershim support so the new container runtime to use is containerd. Thus, I've generated a new containerd based node pool.
Our Jenkins server is running on…

codependent
- 23,193
- 31
- 166
- 308
1
vote
0 answers
Is there a way out to install Jenkins-Operator on powerPC (ppc64le) architecture?
I'm trying to install jenkins-operator on kubernetes on power (ppc64le) architecture, but I haven't found any suitable image of jenkins-operator to install on power architecture. Is there a way to install it on power?
If there is a way out to…

sameed
- 11
- 1
1
vote
1 answer
Jenkins + Kubernetes + ccache
We are considering moving Jenkins to Kubernetes (GKE) and using Jenkins Kubernetes plugin to run job in pods. However, our build infra uses ccache for build speed optimization and we keep ccache files on the jenkins agents (every build reads and…

Cube
- 11
- 1
1
vote
1 answer
Jenkins kubernetes agent checkout scm not using configured key
I am getting errors using checkout scm in a pipeline, because of two issues.
The setup:
Private Kubernetes cluster - 1 controller, 2 workers, on Ubuntu 20.04 VMs
Jenkins running in Kubernetes pods
Kubernetes plug-in to instantiate Jenkins build…

jws
- 2,171
- 19
- 30
1
vote
0 answers
Not able to execute any sudo commands in Jenkins
Im trying to run my pipeline through Jenkins and not able to execute any commands using "sudo". Getting the following error when sudo is encountered :
sudo: you do not exist in the passwd database
Follwing the Dockerfile which Im using for setting…

ASHISH M.G
- 522
- 2
- 7
- 23
1
vote
1 answer
Jenkins podTemplate disbale default echo
I am running my jenkins in Kubernetes to create dynamic slave pod based on requirement.
And each file is uses some credentials from jenkins.
Now the problem is when I run some command in sh script:"" then that credentials are visible on log view…

Alpesh Jikadra
- 1,692
- 3
- 18
- 38