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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: