Questions tagged [jcasc]

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

You should use the tag for questions related to the Configuration as Code plugin.

42 questions
0
votes
0 answers

Simulate Merge Request in Postman

I have set up a Jenkins pipeline which runs in the event a merge request is made to my gitlab repo. How can I use Postman to simulate the merge request to essentially see that in the event a merge request is made, the pipeline will execute as it…
ddd
  • 17
  • 4
0
votes
0 answers

Jenkins Job DSL plugin github app authentication

Hi We are using github apps credentials method in Jenkins to checkout repos from github.com However I am struggling to understand if this method is enabled for job-dsl-plugin Looking at…
0
votes
1 answer

Jenkins helm chart - job DSL issue

I have created a PipelineJob in Jenkins UI, which calls 2 other Jenkins jobs: pipeline { agent any stages { stage("Trigger disable script approval") { steps { script{ build job:…
0
votes
1 answer

Jenkins JCasC Defining All Projects as Code

When you want to configure a jenkins instance as code in kubernetes you use helm and JCasC When you write a jenkins pipeline you do it in a Jenkinsfile But when you want to define a multi branch pipeline in Jenkins you have to click new item and…
Ryan
  • 451
  • 4
  • 11
0
votes
0 answers

How to configure Jenkins Active directory plugin's Bind password using Credential plugin with JCasC

I am trying to configure Jenkins Active directory plugin using JCasC (Jenkins Configuration as Code). In order to configure the Active Directory plugin, I need to provide Bind Password in a secure way. I am using the Jenkins Credential plugin to…
Dheeraj
  • 29
  • 2
  • 9
0
votes
1 answer

Load multiple Jenkins pipeline scripts from Git via Job DSL seed script

My use case: I want to set up a Jenkins configuration via the Jenkins Helm chart, using the JCasC plugin. I would also like to define a number of jobs via the Pipeline plugin in a series of Jenkinsfiles, so that the entire setup is configured in…
Matt Dunn
  • 5,106
  • 6
  • 31
  • 55
0
votes
0 answers

Jenkins docker Error: java.io.FileNotFoundException

I am trying to use docker agent in Jenkinsfile: pipeline { agent { docker { image "openjdk:jdk-alpine" } } stages { stage("Hello") { steps { sh "echo 'Hello'" …
Kuba Wenta
  • 580
  • 1
  • 5
  • 25
0
votes
1 answer

jenkins yaml Jcasc triggers and poll scm to add jobs automatically

I have the following jenkins yaml which works and puts in the jobs automatically. it wont add the credentials unless I go into UI and select the same ID "github" or allow me add polling or triggering I have tried a number of combinations that either…
DeclanG
  • 240
  • 2
  • 6
  • 21
0
votes
1 answer

Parameterized Build Syntax for Jenkins Configuration as Code Plug-in (JCasC)

I'm trying to use the configuration as code (JCasC) plug-in to create a pipeline job that takes in build parameters but I can't find the syntax for this anywhere online. I'm writing the configuration in YAML. On the GUI, the field is called "This…
Katie
  • 23
  • 5
0
votes
2 answers

How to configure Jenkins to launch a job on it's startup without using UI manual configuration

I want to implement a healthcheck(invoking an endpoint) in Jenkins, which should run in docker container. I don't want to manually configure my pipeline job in Jenkins every time container is up. I've tried JCasC, but it doesn't allow to…
0
votes
1 answer

How to use a GitLab link for applying jenkins.yml file for the concept of Jenkins Configuration as Code

I have a local instance of Jenkins. I have previously tried storing the jenkins.yml in my system and giving its path on http://localhost:8080/configuration-as-code. This worked but I want to use a Gitlab repository to store the jenkins.yml file. I…
Yashaswini
  • 43
  • 1
  • 5
0
votes
2 answers

How to configure Fortify plugin using 'Jenkins Configuration As Code' Jenkins plugin (JCASC)?

I'm setting up a new Jenkins master server and configuring it using the Jenkins Configuration as code (JCASC) plugin. https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/README.md I've configured most plugins with JCASC, based on…
JoeD
  • 1
  • 1
1 2
3