question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reference documentation for JCasC YAML

See original GitHub issue

Hi, I very appreciate the JCasC project and your ongoing work here (or related like https://jenkins.io/projects/jcasc/dev-tools/)

You, as insiders, might be fine with the demos as documentation and with the tests on them. But I mean for many developers it takes too much time to find an answer to simple questions, arising when trying to use JCasC, for instance:

  • Jenkins officially supports SSH connected agents (https://hub.docker.com/r/jenkins/ssh-slave), but nothing is to find how this could be addressed in JCasC, let alone a list of the supported keys and values in the YAML tree; only java tests hint
    agentProtocols:
        - "JNLP4-connect"
        - "Ping"
    
  • Is the JCasC root section plugins still relevant? (As for the chicken-egg problem an earlier RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt is needed anyway.)
  • Are the PNGs with these limited options trees meant to be the documentation?

As a developer trying to achieve an end-to-end CI/CD, based on configuration-as-code, I would like to avoid scripted configuration via Groovy or Python, but to find

This relates to, but is not covered by #1037 and #1216.

Regards, Tom

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
damarvincommented, Jan 1, 2020

Joseph, Thanks a lot for the fast response.

Cool feature (always up-to-date), when plugins like Job-DSL or JCasC document themselves in a running system, but you should find it w/o bothering forums 😛

I scrolled through this several times and wondered which page

“Click the Documentation link at the bottom of the Configuration as Code page.”

may refer too.

So could you please replace this sentence at Initial Configuration by something more precise like

To see the Jenkins Master reference documentation go to Manage Jenkins > Configuration as Code > Documentation. There you can also export or View Configuration.

(and change the label of #1242 to “documentation” — there wasn’t a button for me)?

Your hint “This is partly covered by JSON schema too: #1076” might be correct, but me and others searching for YAML documentation and using another IDE would not expect to find the reference documentation under “JSON schema and VC Code”. Again, here you probably mean the running system http://YOUR_JENKINS:8080/configuration-as-code/.

As I can view my Jenkins Master JCasC YAML now, I’m fine. With a small change like proposed above this could be closed.

0reactions
stale[bot]commented, Mar 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration as Code - Jenkins
The Jenkins Configuration as Code (JCasC) feature defines Jenkins configuration parameters in a human-readable YAML file that can be stored as source code....
Read more >
Jenkins Configuration as Code: Documentation - CloudBees
We consider the web UI as some natural documentation, which ensures you don't need to study a long reference documentation before you can ......
Read more >
Getting started with Jenkins Configuration as Code - Eficode
Under Manage Jenkins > Configuration as Code, near the bottom of the page, you'll find handy reference links to both documentation and schemas ......
Read more >
jenkinsci/configuration-as-code-plugin - Gitter
but the reference documentation only indicates user and password as possible values. ... @hemantpawar2792_gitlab how is it related to JCasC? Hemant Pawar.
Read more >
JCasC: Managing Jenkins Through Declarative Configuration
The JCasC plugin searches for CASC_JENKINS_CONFIG in the system environment variable. The variable points to the YAML file in any of the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found