20 questions
0
votes
0
answers
83
views
Add job name and build number to Jenkins agent provided by Kubernetes plugin
I would like to add the job name and build number as a pod label of the agent pod that is spawned by the kubernetes plugin.
For example, if I have a job called "buildMyApp" and I start build ...
0
votes
1
answer
1k
views
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 ...
0
votes
0
answers
230
views
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 /...
4
votes
1
answer
7k
views
Check if container exists when using Kubernetes plugin for jenkins
Our pipeline by default tries to use a container that matches the name of the current stage.
If this container doesn't exist, the container 'default' is used.
This functionality works but the problem ...
1
vote
1
answer
2k
views
Jenkins Kubernetes builds fail with Forbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy)
Exec Summary
Jenkins is running in a Kubernetes cluster just upgrade to 1.19.7 but now jenkins build scripts are failing when running
sh "kubectl --kubeconfig ${args.config} config use-context ${...
5
votes
5
answers
9k
views
Terraform fail to download existing bitnami chart
I am planning to setup jenkins pipeline on K8S using terraform to provising my CI/CD environment.
I am using Terraform v0.12.18
My terraform file has following resource
resource "helm_release&...
3
votes
1
answer
5k
views
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 ...
1
vote
1
answer
2k
views
Jenkins unable to build on kubernetes setup
I have a problem with Jenkins build and this is what I am seeing in the build log:
[Pipeline] Start of Pipeline
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
‘...
1
vote
2
answers
1k
views
Jenkins "Security Realm" configuration keeps changing by itself
I'm on Jenkins 2.235.2 and without any user input every once in a while (like half an hour at most) the security settings just changes itself back to "Delegate to servlet container" instead ...
3
votes
1
answer
7k
views
Pods terminated immediately from Jenkins to Kubernetes cluster
I have jenkins running on Windows as a service on 127.0.0.1:8080
and minikube running on 192.168.99.101
below is the pipeline for Jenkins job
podTemplate(
activeDeadlineSeconds: 240,
name: '...
4
votes
1
answer
1k
views
Jenkins kubernetes-plugin not understanding env variable in scripted pipeline
Jenkins version 2.235.2
kubernetes-plugin version 1.26.4
I'm trying to parametrize the yamlFile used as pod template with a env variable based on the branch I'm building. What I have right now is:
...
0
votes
1
answer
7k
views
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(...
0
votes
1
answer
4k
views
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 /...
1
vote
1
answer
35k
views
Use "label" or define a pod template in jenkinsfile for kubernetes-plugin?
In General
I'm trying to use label when using kubernetes-plugin for Jenkins, but I get a little bit confused.
In my pipeline bellow I'm trying to build test job in parallel steps with different ...
5
votes
1
answer
3k
views
When I use Kubernetes as my agent in Jenkins it will not allow another executor in stage
This is a subset of my declarative Jenkinsfile:
pipeline {
agent {
kubernetes {
yamlFile 'pod.yml'
defaultContainer 'tools'
}
}
stages {
stage('Init') {...
2
votes
2
answers
3k
views
jenkins not downloading parent POM for spring boot 2.2.2.Release
All flow is working fine locally but it is getting issue on jenkins. I am performing following steps:
1- created simple spring boot sample project downloaded strating from spring.io. Below is the pom
...
1
vote
1
answer
2k
views
Jenkins pipelines stuck - Waiting for next available executor
I have a pipeline script with agent any which doesn't work anymore.
It is stuck @ Waiting for next available executor
pipeline {
agent any
stages {
stage('Stage1') {
...
1
vote
0
answers
563
views
Jenkins kubernetes-plugin Parallelise declarative Jenkinsfile
Using kubernetes-plugin Parallelise declarative Jenkinsfile how do you run stages in parallel, when each stage uses the same container? (eg: sonar_qube analysis and unit testing both run on a maven ...
1
vote
1
answer
663
views
Jenkins NodeJS plugin: can't execute 'node'
When using the NodeJS tool on a slave that is configured with a global package, the following error is given:
env: can't execute 'node': No such file or directory
If the build runs on an executor in ...
0
votes
3
answers
2k
views
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: [
...