Check and apply with the CLI do not work (nor does curl)
See original GitHub issueWith the following file:
jenkins:
systemMessage: "Test 123"
And the following command line (I did get the jenkins-cli.jar
from the same jenkins host):
java -jar jenkins-cli.jar -s http://localhost:8080/ check-configuration <jenkins.yaml
There is an error:
ERROR: Unexpected exception occurred while performing apply-configuration command.
io.jenkins.plugins.casc.ConfiguratorException: Found conflicting configuration at YamlSource: java.io.BufferedInputStream@52a762 in java.io.BufferedInputStream@52a762, line 2, column 20:
systemMessage: "Test 123"
^
The same problem exists with apply. The same problem exists when trying with curl:
curl -v -X POST -T jenkins.yaml "http://localhost:8080/configuration-as-code/apply"
Uploading directly in the GUI does work.
- Jenkins version: 2.138.3
- Plugin version: 1.3
- OS: linux
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
How to troubleshoot network applications with curl - A2 Hosting
The curl program is valuable as a network troubleshooting tool. Learn how to use it in this article.
Read more >Run cURL commands from Windows console - Stack Overflow
If you are not into Cygwin, you can use native Windows builds. ... you can install cURL by running this command from the...
Read more >10 cURL Command Usage with Real-Time Example - Geekflare
If you are working on a UNIX system and trying to connect the external URL, the first thing you wish to do is...
Read more >Curl Command In Linux Explained + Examples How To Use It
curl (short for "Client URL") is a command line tool that enables data transfer over various network protocols. It communicates with a web...
Read more >Installing and using cURL - Zendesk Developer Docs
You can use cURL to inspect and test different Zendesk API requests without having to ... Don't leave any space after any ^...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not stale
at the CLI commands list at Jenkins
check-configuration
has a misleading explanation “Apply YAML configuration to instance” - it seems to me they try to apply or check NEW yaml,reloading works well as far as I know, with
reload-jcasc-configuration
command