Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42080

API to write a single file to the repository

    Details

    • Similar Issues:
    • Sprint:
      frank, tethys, christmas

      Description

      Requirements

      • Write natively to any branch of a Git repository hosted on Github
      • Write to any branch of a Git repository
      • Must maintain compatibility with Jenkins 2.7.1 and above

      Desired user experience

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment -

            We've a method around this now.

            Show
            jamesdumay James Dumay added a comment - We've a method around this now.
            Hide
            jglick Jesse Glick added a comment -

            As noted in JENKINS-39703, SCMFile may need to add some methods to define some new abstract type SCMFileContent which has contentAsBytes etc. but also a replace method—since GitHub does not let you overwrite a file without specifying what you are overwriting (presumably to avoid data loss with non-fast-forward merges).

            Show
            jglick Jesse Glick added a comment - As noted in JENKINS-39703 , SCMFile may need to add some methods to define some new abstract type SCMFileContent which has contentAsBytes etc. but also a replace method—since GitHub does not let you overwrite a file without specifying what you are overwriting (presumably to avoid data loss with non-fast-forward merges).
            Hide
            hrmpw Patrick Wolf added a comment -

            This was cloned from JENKINS-39703 Jesse Glick and the comment is from you referring to the Read API. I split this off to track the write API separately.

            Show
            hrmpw Patrick Wolf added a comment - This was cloned from JENKINS-39703 Jesse Glick and the comment is from you referring to the Read API. I split this off to track the write API separately.
            Hide
            jglick Jesse Glick added a comment -

            Jesse Glick said there is beginnings of this in the scm-api

            No, there has never been any proposed API to write files. Sounds like a battle which should not be picked—just provide a downloadable file and ask people to commit it when ready.

            Show
            jglick Jesse Glick added a comment - Jesse Glick said there is beginnings of this in the scm-api No, there has never been any proposed API to write files. Sounds like a battle which should not be picked—just provide a downloadable file and ask people to commit it when ready.

              People

              • Assignee:
                Unassigned
                Reporter:
                hrmpw Patrick Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: