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

Pipelines created in Blue Ocean should default to clean workspace

    Details

    • Epic Link:
    • Sprint:
      Blue Ocean 1.4 - beta 3
    • Similar Issues:

      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

            Hide
            jamesdumay James Dumay added a comment -

            Liam Newman could we just automatically write that option into their jenkinsfile?

            Show
            jamesdumay James Dumay added a comment - Liam Newman could we just automatically write that option into their jenkinsfile?
            Hide
            jamesdumay James Dumay added a comment -

            Yep ill add this in a PR im doing now

            Show
            jamesdumay James Dumay added a comment - Yep ill add this in a PR im doing now
            Hide
            jamesdumay James Dumay added a comment -

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

            Show
            jamesdumay James Dumay added a comment - Karl Shultz this would be a good candidate for some exploratory testing I think

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: