[JIRA] [workflow-plugin] (JENKINS-32948) ["git" step] Add "WipeWorkspace" option to simplify release jobs

4 views
Skip to first unread message

cleclerc@cloudbees.com (JIRA)

unread,
Feb 15, 2016, 8:15:03 AM2/15/16
to jenkinsc...@googlegroups.com
Cyrille Le Clerc created an issue
 
Jenkins / Bug JENKINS-32948
["git" step] Add "WipeWorkspace" option to simplify release jobs
Issue Type: Bug Bug
Assignee: Jesse Glick
Components: workflow-plugin
Created: 15/Feb/16 1:14 PM
Priority: Minor Minor
Reporter: Cyrille Le Clerc

It is useful when performing a release to wipe the workspace.

People typically use the WipeWorkspace extension with the GitSCM plugin. could we add a wipeWorkspace option to the "git" step.

Sample with the GitSCM plugin:

checkout([$class: 'GitSCM', 
  branches: [[name: '*/master']], 
  extensions: [
      [$class: 'WipeWorkspace'], 
      [$class: 'LocalBranch', localBranch: 'master']], 
  userRemoteConfigs: [[credentialsId: 'github-credentials', url: 'https://github.com/cyrille-leclerc/my-spring-boot-app.git']]])
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

cleclerc@cloudbees.com (JIRA)

unread,
Feb 15, 2016, 2:10:03 PM2/15/16
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 18, 2016, 8:44:01 AM2/18/16
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Won't Do
 

I do no plan to add any more options to the git step. checkout should be used.

Change By: Jesse Glick
Status: Open Resolved
Resolution: Won't Do

cleclerc@cloudbees.com (JIRA)

unread,
Feb 26, 2016, 3:30:02 AM2/26/16
to jenkinsc...@googlegroups.com
Cyrille Le Clerc commented on Improvement JENKINS-32948
 
Re: ["git" step] Add "WipeWorkspace" option to simplify release jobs

Jesse Glick which workaround would you recommend? Is there a pipeline property "never reuse workspace"?

jglick@cloudbees.com (JIRA)

unread,
Feb 26, 2016, 10:34:01 AM2/26/16
to jenkinsc...@googlegroups.com

I recommend using the checkout step, which lets you customize the Git plugin however you like.

cleclerc@cloudbees.com (JIRA)

unread,
Feb 26, 2016, 10:42:01 AM2/26/16
to jenkinsc...@googlegroups.com

Could it make sense to declare at the workspace level a strategy to never reuse the workspace, always wipe out the workspace before entering the step?

it could look like:

ws (reuse:"never") {
   git url: url: 'https://github.com/account/repo.git', credentialsId: 'github-credentials'
   ...
}

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 14, 2019, 8:04:02 AM7/14/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Won't Do
 
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages