Details

    • Similar Issues:

      Description

      Currently POSTing new job creates it, but it's not possible to update configuration (config.xml). That would eliminate any needed changes through UI.

        Attachments

          Activity

          Hide
          karel1980 Karel Vervaeke added a comment -

          This is probably an old issue.
          As far as I can tell you can update an issue by posting to /job/

          {jobname}

          /config.xml with the config.xml int the body.

          There still is a problem: when you GET the job config and then POST it back you would expect it to be a no-op =>

          curl http://myjenkins/job/myjob/config.xml -o myjob-config.xml
          curl -XPOST http://myjenkins/job/myjob/config.xml -d @myjob-config.xml

          However this operation strips newlines, breaking shell steps:
          <hudson.tasks.Shell>
          <command>echo "one"
          echo "two"
          echo "three"</command>
          </hudson.tasks.Shell>

          becomes

          <hudson.tasks.Shell> <command>echo oneecho twoecho three</command> </hudson.tasks.Shell>

          (in fact the entire config.xml ends up on a single line).

          Show
          karel1980 Karel Vervaeke added a comment - This is probably an old issue. As far as I can tell you can update an issue by posting to /job/ {jobname} /config.xml with the config.xml int the body. There still is a problem: when you GET the job config and then POST it back you would expect it to be a no-op => curl http://myjenkins/job/myjob/config.xml -o myjob-config.xml curl -XPOST http://myjenkins/job/myjob/config.xml -d @myjob-config.xml However this operation strips newlines, breaking shell steps: <hudson.tasks.Shell> <command>echo "one" echo "two" echo "three"</command> </hudson.tasks.Shell> becomes <hudson.tasks.Shell> <command>echo oneecho twoecho three</command> </hudson.tasks.Shell> (in fact the entire config.xml ends up on a single line).
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Fixed in newer versions

          Show
          oleg_nenashev Oleg Nenashev added a comment - Fixed in newer versions

            People

            • Assignee:
              Unassigned
              Reporter:
              ielectric iElectric
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: