[JIRA] (JENKINS-42080) API to write a single file to the repository

2 views
Skip to first unread message

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:10:03 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
 
Jenkins / Task JENKINS-42080
API to write a single file to the repository
Change By: Patrick Wolf
Component/s: scm-api-plugin
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:10:03 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf created an issue
Issue Type: Task Task
Assignee: Unassigned
Components: blueocean-pipeline-editor-plugin
Created: 2017/Feb/15 10:09 PM
Labels: blueocean
Priority: Major Major
Reporter: Patrick Wolf

Scope

  • Github

Out of scope

  • Git and Bitbucket support

Notes
For the Blue Ocean Pipeline Editor we want to read the Jenkinsfile from the repository, let the user author it in the editor then commit it back to the repository.

We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to read/write a file from the repository.

Jesse Glick said there is beginnings of this in the scm-api but no implementations.

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:13:01 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
Change By: Patrick Wolf
*Scope*
* Github

*Out of scope*
* Git and Bitbucket support

*Notes*
For the [Blue Ocean Pipeline Editor|https://jenkins.io/blog/2016/09/19/blueocean-beta-declarative-pipeline-pipeline-editor/] we want to
read save the Jenkinsfile from the repository , let the user author it in the editor then commit it back to the repository.


We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to read/write a file from the repository.

[~jglick] said there is beginnings of this in the scm-api but no implementations.

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:16:05 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
*Scope*
* Primary
** Github
** Github Enterprise
* Secondary
** Bitbucket Server
** Bitbucket Cloud

*Out of scope*
* Git and
others   support

*Notes*
For the [Blue Ocean Pipeline Editor|https://jenkins.io/blog/2016/09/19/blueocean-beta-declarative-pipeline-pipeline-editor/] we want to save the Jenkinsfile, let the user author it in the editor then commit it back to the repository.


We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to read/write a file from the repository.

[~jglick] said there is beginnings of this in the scm-api but no implementations.

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:16:05 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
*Scope*
*
Primary
**
Github
** Github Enterprise
*
Secondary

** Bitbucket Server
** Bitbucket Cloud

* Out of scope*
* Git and
Bitbucket support


*Notes*
For the [Blue Ocean Pipeline Editor|https://jenkins.io/blog/2016/09/19/blueocean-beta-declarative-pipeline-pipeline-editor/] we want to save the Jenkinsfile, let the user author it in the editor then commit it back to the repository.

We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to read/write a file from the repository.

[~jglick] said there is beginnings of this in the scm-api but no implementations.

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:18:01 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
*Scope*
* Primary
** Github
** Github Enterprise
* Secondary
** Bitbucket Server
** Bitbucket Cloud

*Out of scope*
* Git and others support

*Notes*
For the [Blue Ocean Pipeline Editor|https://jenkins.io/blog/2016/09/19/blueocean-beta-declarative-pipeline-pipeline-editor/]
we want to save the Jenkinsfile , let the user author it in the editor then commit it back to the repository.

We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to
read/ write a file from the repository.

[
~jglick] said there is beginnings of this in the scm-api but no implementations.

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 5:18:01 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
*Scope*
* Primary
** Github
** Github Enterprise
* Secondary
** Bitbucket Server
** Bitbucket Cloud

*Out of scope*
* Git and others support

*Notes*
For the [Blue Ocean Pipeline Editor|https://jenkins.io/blog/2016/09/19/blueocean-beta-declarative-pipeline-pipeline-editor/], let the user author it in the editor then commit it back to the repository.

We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to write a file from the repository.


[

jdumay@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 7:23:02 PM2/15/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
Change By: James Dumay
*Scope*
*
Primary
**
Write natively to any branch of a Git repository hosted on Github
*
* Github Enterprise

* Secondary
** Bitbucket Server
** Bitbucket Cloud

*Out Write to any branch of scope* a Git repository
*
Git Must not require a Jenkins core upgrade. Must maintain compatibility with Jenkins 2.7.1 and others support above.

*
Notes Desired user experience *
For the [Blue Ocean Pipeline Editor| Mockup: https:// jenkins projects . io invisionapp.com / blog share / 2016 Q2A110KM9# / 09 screens / 19/blueocean-beta-declarative-pipeline-pipeline-editor/], let the user author it in the editor then commit it back to the repository.

We need a new API and relevant implementations (Github and Bitbucket) that would allow Blue Ocean to write a file from the repository.
219088047

jdumay@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 7:24:01 PM2/15/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
*Scope*

* Write natively to any branch of a Git repository hosted on Github
* Write to any branch of a Git repository
* Must not require a Jenkins core upgrade. Must maintain compatibility with Jenkins 2.7.1 and above.

*Desired user experience*
Mockup: https://projects.invisionapp.com/share/Q2A110KM9#/screens/219088047


*Notes*
[~jglick] said there is beginnings of this in the scm-api but no implementations.

jdumay@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 7:26:01 PM2/15/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
*Scope*
* Write natively to any branch of a Git repository hosted on Github
* Write to any branch of a Git repository
* Must not require a Jenkins core upgrade. Must maintain compatibility with Jenkins 2.7.1 and above.

*Desired user experience*
* User experience is described in JENKINS-41966
*
Mockup: https://projects.invisionapp.com/share/Q2A110KM9#/screens/219088047


*Notes*
[~jglick] said there is beginnings of this in the scm-api but no implementations.

jdumay@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 7:30:02 PM2/15/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
* Scope Requirements *

* Write natively to any branch of a Git repository hosted on Github
* Write to any branch of a Git repository
* Must not require a Jenkins core upgrade. Must maintain compatibility with Jenkins 2.7.1 and above.

*Desired user experience*
* User experience is described in JENKINS-41966
* Mockup: https://projects.invisionapp.com/share/Q2A110KM9#/screens/219088047

*Notes*
[~jglick] said there is beginnings of this in the scm-api but no implementations.

jdumay@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 7:30:02 PM2/15/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
*Requirements*

* Write natively to any branch of a Git repository hosted on Github
* Write to any branch of a Git repository
* Must
not require a Jenkins core upgrade. Must maintain compatibility with Jenkins 2.7.1 and above .

*Desired user experience*
* User experience is described in JENKINS-41966
* Mockup: https://projects.invisionapp.com/share/Q2A110KM9#/screens/219088047

*Notes*
[~jglick] said there is beginnings of this in the scm-api but no implementations.

pwolf@cloudbees.com (JIRA)

unread,
Feb 15, 2017, 7:41:01 PM2/15/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
Change By: Patrick Wolf
Sprint: frank, tethys, christmas , post-release

jglick@cloudbees.com (JIRA)

unread,
Feb 16, 2017, 12:43:02 PM2/16/17
to jenkinsc...@googlegroups.com
Jesse Glick commented on Task JENKINS-42080
 
Re: API to write a single file to the repository

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.

pwolf@cloudbees.com (JIRA)

unread,
Feb 16, 2017, 12:45:01 PM2/16/17
to jenkinsc...@googlegroups.com

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.

pwolf@cloudbees.com (JIRA)

unread,
Feb 16, 2017, 12:46:01 PM2/16/17
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
Change By: Patrick Wolf
*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*
* User experience is described in JENKINS-41966
* Mockup: https://projects.invisionapp.com/share/Q2A110KM9#/screens/219088047

*Notes*
[~jglick] said there is beginnings of this in the scm-api but no implementations.

jdumay@cloudbees.com (JIRA)

unread,
Feb 19, 2017, 12:07:01 AM2/19/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
Change By: James Dumay
Sprint: frank, tethys, christmas , 1.1

jdumay@cloudbees.com (JIRA)

unread,
Feb 19, 2017, 10:00:02 PM2/19/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
Change By: James Dumay
Priority: Major Critical

jglick@cloudbees.com (JIRA)

unread,
Feb 24, 2017, 1:40:01 PM2/24/17
to jenkinsc...@googlegroups.com
Jesse Glick commented on Task JENKINS-42080
 
Re: API to write a single file to the repository

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).

bitwiseman@gmail.com (JIRA)

unread,
May 29, 2019, 12:54:03 PM5/29/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Won't Do
 
Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages