-
Improvement
-
Resolution: Fixed
-
Critical
-
None
-
-
1.0
Entry points
Clicking the edit link on these places launches the Editor against that branch
- Creation (when there is no Jenkinsfile in the repository)
- For a specific branch on the Branches tab
- For a specific branch on the run screen
- Existing functionality that lets you copy and paste the Jenkinsfile should be preserved as the "degrated" experience.
Saving
We present a dialog that allows users to:
- Specify a commit message
- Specify a commit description
- Radio list
- Commit to $CURRENT_BRANCH
- Commit to new branch
- Text box: branch name - only show this text input if "commit to new branch" radio is selected
- Buttons
- Save - commits the Jenkinsfile and triggers a rescan
- Cancel - exists this dialog and returns to the editor
Design:
Resolving scopes
When saving we may have to ask for a "upgrade" to the stored Github token or provide one if the user does not have one set (credentials are stored per user). Writing to the repository also requires different scopes than what we may have setup during creation. I'd imagine this looks very similar to the creation way of doing it (asking for a Key)
- blocks
-
JENKINS-42135 Pipeline Creation last steps
- Resolved
- relates to
-
JENKINS-42080 API to write a single file to the repository
- Closed
-
JENKINS-39703 API to read a single file from the repository
- Closed