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

Easter egg for export/import Jenkinsfile via text box

    • 1.0

      Whilst we don't have a design yet for this, could there be a way to get to the editor to: 

       

       

      • Show the Jenkinsfile so you can copy it as text when opened from a branch
      • Show the copy/paste old expeirence from a known URL with no SCM integration
      • Show editable text area when opened from a branch via some url

       

      The last one is to aid contributors/debuggers if there are problems with round trip to declarative, first one is for if github is shitting the bed. 

      Middle one is just to keep it around as it can be a handy thing that evolved in playground 

       

      Out of scope: 

       

      • Anything visible that doesn't yet have a design. These are all hidden things to aid supportability. 

          [JENKINS-42649] Easter egg for export/import Jenkinsfile via text box

          Michael Neale added a comment -

          we discussed and concluded if this is strictly an easter egg, can be done any time. If it requires some icon/link that is visible, we need more design work. 

          Michael Neale added a comment - we discussed and concluded if this is strictly an easter egg, can be done any time. If it requires some icon/link that is visible, we need more design work. 

          Keith Zantow added a comment -

          Just press ctrl/cmd + s now to get the load/save dialog

          Keith Zantow added a comment - Just press ctrl/cmd + s now to get the load/save dialog

          Code changed in jenkins
          User: Keith Zantow
          Path:
          pom.xml
          src/main/js/EditorPage.jsx
          src/main/js/EditorRoutes.jsx
          src/main/js/PipelineEditorLink.jsx
          src/main/js/components/editor/CopyPastePipelineDialog.jsx
          src/main/js/components/editor/EditorPage.jsx
          src/main/js/services/PipelineSyntaxConverter.js
          src/main/js/services/Security.js
          src/main/less/editor.less
          http://jenkins-ci.org/commit/blueocean-pipeline-editor-plugin/43c191341e3836e741425085d76784d08e34b327
          Log:
          Fix some misc. issues discovered in rc1 (#33)

          • JENKINS-42788 - hide editor links when no create permission
          • JENKINS-42790 - don't show the toast for a new pipeline
          • JENKINS-42647 - don't show Github JSON blob
          • JENKINS-42735 - encoding issue with branch names when save/run
          • JENKINS-42649 - ctrl/cmd + s to open the load/save dialog
          • Route tweaks to get to pipeline editor
          • Bump blueocean version to 1.0.0-rc1
          • JENKINS-42789 - error copy tweaks

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Keith Zantow Path: pom.xml src/main/js/EditorPage.jsx src/main/js/EditorRoutes.jsx src/main/js/PipelineEditorLink.jsx src/main/js/components/editor/CopyPastePipelineDialog.jsx src/main/js/components/editor/EditorPage.jsx src/main/js/services/PipelineSyntaxConverter.js src/main/js/services/Security.js src/main/less/editor.less http://jenkins-ci.org/commit/blueocean-pipeline-editor-plugin/43c191341e3836e741425085d76784d08e34b327 Log: Fix some misc. issues discovered in rc1 (#33) JENKINS-42788 - hide editor links when no create permission JENKINS-42790 - don't show the toast for a new pipeline JENKINS-42647 - don't show Github JSON blob JENKINS-42735 - encoding issue with branch names when save/run JENKINS-42649 - ctrl/cmd + s to open the load/save dialog Route tweaks to get to pipeline editor Bump blueocean version to 1.0.0-rc1 JENKINS-42789 - error copy tweaks

            kzantow Keith Zantow
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: