Archive

Archive for the ‘jenkins’ Category

HowTo – Jenkins – Remove an Orphaned Workspace

December 14th, 2014 No comments

A couple of times I’ve been left with an orphaned workspace directory after deleting a project.

If you don’t the credentials to remove the directory in the operating system, try this Groovy script:

def command = """rm -rf /var/lib/jenkins/workspace/TheOrpanedWorkspace""" // Create the String
def proc = command.execute() // Call *execute* on the string
proc.waitFor()
print "done";

Categories: jenkins Tags: