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

Pipelines created in Blue Ocean should default to clean workspace

    XMLWordPrintable

Details

    • Blue Ocean 1.4 - beta 3

    Description

      The pipelines created in blue ocean should default to logical settings for blue ocean and pipeline users. 

       

      The target audience is people using Jenkins for CI/CD.  They may not know that they need to clean their workspaces between pipeline runs - they could reasonably expect that jenkins checkout will also clean the workspace.   They may then get unexpected behavior due to workspaces not being clean before use or will have to include pipeline code to clean their workspace at the start of each pipeline run.  

       

      Instead Blue Ocean should add the "Clean Before Checkout" and "Clean After Checkout" options to multi-branch pipelines created in Blue Ocean (both are needed for truly good behavior).  Also, the "clean" operation is git is not expensive especially when it is a no-op. 

       

       

       

      Attachments

        Issue Links

          Activity

            bitwiseman Liam Newman created issue -
            jamesdumay James Dumay added a comment -

            bitwiseman could we just automatically write that option into their jenkinsfile?

            jamesdumay James Dumay added a comment - bitwiseman could we just automatically write that option into their jenkinsfile?
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Assignee James Dumay [ jamesdumay ]
            jamesdumay James Dumay made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jamesdumay James Dumay added a comment -

            Yep ill add this in a PR im doing now

            jamesdumay James Dumay added a comment - Yep ill add this in a PR im doing now
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-36588 [ 172614 ]
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.4 - beta 3 [ 416 ]
            jamesdumay James Dumay made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "PR-1599 (Web Link)" [ 19429 ]
            jamesdumay James Dumay made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jamesdumay James Dumay added a comment -

            kshultz this would be a good candidate for some exploratory testing I think

            jamesdumay James Dumay added a comment - kshultz this would be a good candidate for some exploratory testing I think
            michaelneale Michael Neale made changes -
            Issue Type Task [ 3 ] Improvement [ 4 ]
            michaelneale Michael Neale made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 19835 ]

            People

              jamesdumay James Dumay
              bitwiseman Liam Newman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: