/var/lib/jenkins/jobs/testjob/workspace folder not exist

150 views
Skip to first unread message

Hemant Wanjari

unread,
Oct 14, 2017, 5:28:08 PM10/14/17
to Jenkins Users
Hi,

Anyone can help me here....

In my machine /var/lib/jenkins/jobs/testjob/workspace folder not exist

Yotam Shapira

unread,
Oct 14, 2017, 5:44:49 PM10/14/17
to Jenkins Users
It shouldn’t exist. The folder /var/lib/jenkins/jobs/testjob is where your workspace is.

Hemant Wanjari

unread,
Oct 14, 2017, 6:13:45 PM10/14/17
to Jenkins Users
I am not getting you. 

Attaching screenshot for more clarification.
NoWorkspace folder inside my job folder.PNG
path_var-lib-jenkins.PNG

Robert Hales

unread,
Oct 15, 2017, 1:22:52 AM10/15/17
to Jenkins Users
You seem to have answered your own question. By default, the workspaces are in the workspace directory. The configuration for the jobs is in the jobs directory. You shouldn't expect to find the workspace under the job itself. 

Older versions of Jenkins had the workspace under the individual 'jobs' directories. I think if the instance was upgraded, it keeps the same path for the later version as well, but new installs should use the new locations. 

Robert Hales

unread,
Oct 15, 2017, 1:36:31 AM10/15/17
to Jenkins Users
Looks like this was changed in Jenkins 1.421 (2011/07/17) (JENKINS-8446), and only affects new installs of Jenkins. http://jenkins-ci.org/commit/jenkins/4f0ea9da03301e6c671523cee1b4cf9e40a64c38

Hemant Wanjari

unread,
Oct 15, 2017, 4:26:06 AM10/15/17
to Jenkins Users
Yes Robert, The source from where I am learning jenkins has older version of it. Thats why I got confused. Thanks for clarification. :-)
Reply all
Reply to author
Forward
0 new messages