Hi Team,
Came across below error for few Jenkins jobs:
Error: no workspace
There’s no workspace for this project. Possible reasons are:
- The project was renamed recently and no build was done under the new name.
- The agent this project has run on for the last time was removed.
- The workspace directory (null) is removed outside Jenkins.
- The workspace was wiped out and no build has been done since then.
Run a build to have Jenkins create a workspace
Upon investigating came across that, there some schedule clean is captured under Manage Jenkins > System Log > All Jenkins logs as indicated below image:
When i checked for the workspace inside the Jenkins agent/agent where jobs ran, the workspace exists.
Note that when i build the jenkins job again and is completed, i can see the workspace. But, cannot keep on building the job for multiple times and oftenly for this issue.
Just want to know, what is this causing the workspace to be missing. Is there any configurations to disable to avoid this issue or preserve the workspace.
Regards,
Azeem