<< Back to previous view

[QB-3204] The useless folder has been created on build requester's user agent. again
Created: 29/May/18  Updated: 30/May/18

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 7.0.30
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Yoongeon Lee Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Windows 10 Enterprise

File Attachments: Text File 3.0.0.368_BuildLog.txt     PNG File failed step.png     PNG File Step_Node selection.png     PNG File Workflow.png    

 Description   
Hello,

Problem
Our proof build has been failed on build requester's user agent.
Please see build log here. "Step 'master' is failed: Unable to create directory: D:\Sherlock\trunk"
Actually, the folder "D:\Sherlock\trunk" should be created on only build agent PC, Not user agent PC..
It seems the agent tries to create the folder "D:\Sherlock\trunk" on User agent PC, which doesn't have D drive (D:\)

- Error message
00:24:22,562 INFO - Executing pre-execute action...
00:24:22,562 INFO - Running step...
00:24:22,566 INFO - Checking step execute condition...
00:24:22,567 INFO - Step execute condition satisfied, executing...
00:24:22,586 INFO - Executing pre-execute action...
00:24:22,586 INFO - Running step...
00:24:22,592 INFO - Executing post-execute action...
00:24:22,678 INFO - Checking step execute condition...
00:24:22,678 INFO - Step execute condition satisfied, executing...
00:24:25,588 INFO - Executing post-execute action...
00:24:25,588 ERROR - Step 'master' is failed: Unable to create directory: D:\Sherlock\trunk

for more information,
We have been using the repository as a GIT in Quick Build.
The workflow of proof build includes main two step:
- Static Code Analysis for changed codes.
- Source code compile & unit test

The static code analysis for only changed files in Target Path is performed on the PC where the user agent is running during proof build. If the changed code passes through code analysis step, Source codes in Git Repository are downloaded to Destination Path of the PC, where the build agent is running. and then compiling codes and unit testing are performed.

Currently, a folder in Destination Path is created on User Agent PC as well as Build Agent PC.
Acutally, it seems the user agent creates a folder of Detination Path. But the destination path should be created only on the build agent.
If our proof build is running on the User Agent PC that doesn't have a D drive(D:\), it always fails because the user agent can't create directory D:\.
You can see the log attached.

- Destination Path(${vars.get("ProjectFolderName")}) -> "D:\Sherlock"
- Target Path (${vars.get("localRepositoryPath")}) -> "F:\Git_repo" ( User Agent PC has only C:\ and F:\ drives )


 Comments   
Comment by Yoongeon Lee [ 29/May/18 08:46 AM ]
I think this is user Agent issue that Quick Build provides
Comment by Robin Shen [ 30/May/18 12:24 AM ]
Can you please reproduce this issue with a sample database and send me the backup so that I can check the issue here?
Comment by Yoongeon Lee [ 30/May/18 04:05 PM ]
Hi, Robin

The step to reproduce is complicated. But it seems I find a way to solve this issue. Please close it
Generated at Sun May 05 03:15:14 UTC 2024 using JIRA 189.