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.

Check and apply with the CLI do not work (nor does curl)

See original GitHub issue

With 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:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
timjacommented, Sep 22, 2019

Not stale

2reactions
ewelinawilkoszcommented, Dec 11, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

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