Skip to main content

Questions tagged [jcasc]

Jenkins Configuration as Code (a.k.a. JCasC) Plugin. A way to configure Jenkins based on human-readable declarative configuration files.

jcasc
0 votes
1 answer
26 views

Running jenkins slaves on a few data centers

Jenkins setup: Jenkins: 2.452.1 OS: Linux - 6.5.0-26-generic Java: 17.0.11 - Eclipse Adoptium (OpenJDK 64-Bit Server VM) --- ansicolor:1.0.4 antisamy-markup-formatter:162.v0e6ec0fcfcf6 apache-...
Kacper Woźniak's user avatar
0 votes
1 answer
106 views

Jenkins Code as Configuration (jcasc) and browserstack credential creates credential but blocks casc reload

We use jcasc for jenkins config and have a browserstack credential, the cred gets created but when we reload the casc we see Error Failed to construct instance of class com.browserstack.automate.ci....
Peter Kahn's user avatar
  • 12.8k
1 vote
0 answers
50 views

How to Create and Utilize Jenkins Job Templates with Jenkins Configuration as Code (JCasC)

I've created a Jenkins Job template using a YAML file, which primarily consists of parameters. Now, I'm looking for guidance on how to use this job template to parameterize other pipeline jobs within ...
Mounia's user avatar
  • 19
0 votes
1 answer
600 views

Jenkins Kubernetes - Use custom Agent pod spec from the Controller pod

I have deployed a Jenkins instance in a Kubernetes cluster using this helm chart. Inside the instance, several declarative pipelines are configured as JCasC. These pipelines need a custom agent pod ...
barmanthewise's user avatar
1 vote
0 answers
103 views

Disable build status from jenkins to bitbucket

In the bitbucket UI there is a column of build status for commits. I don't want my Jenkins to send build statuses to bitbucket. I configure my jenkins using JCasC, and I can't seem to find the right ...
Atalya Nagar's user avatar
0 votes
1 answer
407 views

JCasC - configure a hudson.security.SecurityRealm

Im trying to configure Jenkins helm chart of jenkinsci with JCasC. this is part of my value.yml JCasC: defaultConfig: true securityRealm: |- saml: binding: "urn:oasis:...
Roxbip's user avatar
  • 9
0 votes
0 answers
223 views

Every time I restart my Jenkins server, I lose the configuration changes made through the Jenkins UI

Description: When I add a credential through the Jenkins UI, I can see that the credential is added in the Configuration as Code section. Additionally, I've set up Docker volumes to store ...
cranky's user avatar
  • 1
0 votes
0 answers
268 views

Cannot configure sonarqube with Jenkins using jcasc

I am wondering if the support for some plugings like sonarqube uding jcasc have be abandoned, because I have been trying to using this settings unclassified: sonarglobalconfiguration: ...
TREX_SON's user avatar
0 votes
0 answers
442 views

ERROR: Failed to clean the workspace - Jenkins workspace cleanup permissions issue

In Jenkins in K8S pod I'm using checkout in my scripted pipeline (The job is running in root permission) - checkout([$class : 'GitSCM', branches: [[name: branch]], ...
EilonA's user avatar
  • 491
0 votes
2 answers
2k views

Jenkins Kubernetes (JCASC) How to set default container to my container instead of JNLP?

I'm using pipelines in Jenkins that are running using JNLP container instead of my container. I'm using Jenkins as a code (Jenkin Helm chart) If I add this block to the pipeline - container('my ...
EilonA's user avatar
  • 491
1 vote
0 answers
184 views

Jenkins - scriptler scripts require admin approval, how to auto-approve scripts?

I have scripts in Scriptler plugin that require approval from administrator. I'm running Jenkins in K8S and I'm adding scripts into /var/jenkins_home/scriptler/scripts. How do I auto approve new ...
EilonA's user avatar
  • 491
1 vote
0 answers
89 views

Jenkins - scriptler plugin access denied to scriptler git repo

After installing scriptler plugin I want to have my scripts saved in a source repo. I am trying to clone the default repo of scriptler -https://jenkins.xxxxxxxxxx.com/scriptler.git/ fatal: unable to ...
EilonA's user avatar
  • 491
1 vote
1 answer
1k views

Jenkins JCASC Kubernetes plugin - Allow podTemplate to have YAML

I'm using Jenkins configuration as code (JCASC). I'm having a pod template and I want to add NodeSelector + Tolerations. podTemplate doesn't support key of tolerations and NodeSelector so I need to ...
EilonA's user avatar
  • 491
0 votes
1 answer
831 views

Build Jenkins using Jenkins as code configuration and configure jobs in the code instead of the UI

I am using Jcasc (Jenkins as a code) and when I build Jenkins from scratch, the Jenkins is up without any jobs/folders exist. I want to have jobs predefined or organization folders (From github) ...
EilonA's user avatar
  • 491
0 votes
1 answer
866 views

Running Jenkins jobs using Kubernetes plugin run by DEFAULT on JNLP container instead of my container

as documented here, by default, commands in Jenkins agents will run in the jnlp container. And yes, when I run my jenkins pipeline using this code, it will run on my main container - node('node-agent')...
EilonA's user avatar
  • 491

15 30 50 per page