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

API to write a single file to the repository

    XMLWordPrintable

Details

    • 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

            jamesdumay James Dumay added a comment -

            We've a method around this now.

            jamesdumay James Dumay added a comment - We've a method around this now.
            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).

            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).
            hrmpw Patrick Wolf added a comment -

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

            hrmpw Patrick Wolf added a comment - This was cloned from JENKINS-39703 jglick and the comment is from you referring to the Read API. I split this off to track the write API separately.
            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.

            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

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

              Dates

                Created:
                Updated:
                Resolved: