Questions tagged [kubernetes-jenkins-plugin]

21 questions
0
votes
0 answers

How do I preserve environment variables order in a POD template generated with Kubernetes plugin in Jenkins?

I have the need to use environment variables in the POD definition that depend on other declared environment variables. For this to happen correctly, I need the POD resource tobe generated with a specific order of environment variables. Here is part…
StefanH
  • 799
  • 1
  • 6
  • 22
0
votes
1 answer

Jenkins Kubernetes Plugin URL Connection Fails After Some Time

I run into a strange issue, as the title suggests. I am running my Jenkins on a Kubernetes cluster on IBM Cloud. I used the kubernetes plugin to configure a cloud and dynamically create a slave container to run jobs. When I set up this cloud…
0
votes
0 answers

Configure Jenkins Backup Plugin

I've encountered a problem using the backup plugin. I'm getting an error when trying to restore a previous backup using the backup plugin. "Error copying backup files: Failed setLastModified on /var/lib/jenkins_restore. I ran "chmod -R 777 /var/lib"…
0
votes
1 answer

The Jenkins tunnel address which I specify in the Jenkins->Configure Cloud does not seem to work. Can someone help me with the same?

I have a kubernetes cluster running on GKE and a Jenkins server running on a GCP instance. I am using the Kubernetes plugin to dynamically create pods on the kubernetes cluster. I created a pipeline(Declarative syntax) for the same. So I am aware…
0
votes
1 answer

Jenkins Kubernetes: Mount subpath of volume

As far as i understood, the kubernetes api allows one to mount a subpath of a pvc into the container in the volumeMounts spec. In my example i want to mount the pvc my-pvc, but in the subdirectory /my-subpath to /my-mount. So the directory…
0
votes
3 answers

Kubernetes jenkins pod template creating pod in wrong namespace

We have a jenkins master-slave architecture and using the Kubernetes Jenkins plugin. The podTemplate looks as below podTemplate(label: 'builder-pod', cloud: 'kubernetes', containers: [ containerTemplate( name: 'jnlp', …
smk
  • 5,340
  • 5
  • 27
  • 41
1
2