History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-602
Type: Bug Bug
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Yossi Ben Haroosh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Build not triggered

Created: 23/Aug/10 07:45 AM   Updated: 31/Aug/11 03:42 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. XML File Configurationsz.xml (1.36 Mb)
2. Zip Archive remainingdb.zip (10 kb)



 Description  « Hide
Hi,
We have a configuration that is set to run with a scheduler, and it's trigger condition is:

for(repository: current.getInvolvedRepositories()) {
  if (repository.isChanged("//SOME/REPOSITORY/BRANCH/**")) return true;
}
return false;

So we expect that every time a file changes under //SOME/REPOSITORY/BRANCH/, a build will be triggered - we have that setup similarly in several other configurations and it's working well. The problem is that no builds were ever triggered by the scheduler (manually it works fine).
Also, if I change the path above to //SOME/REPOSITORY/, the build is triggered by the scheduler.

Please help.
Yossi

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [23/Aug/10 10:02 AM]
Can you please send a backup of the database to [support AT pmease DOT com], and tell which configuration is in problem?

Yossi Ben Haroosh [25/Aug/10 11:35 AM]
Hi,
The relevant configuration is: Effort , id is 593
Let me know if you need further info.

Yossi

Change by Yossi Ben Haroosh [25/Aug/10 11:35 AM]
Field Original Value New Value
Attachment Configurationsz.xml [ 10190 ]

Robin Shen [25/Aug/10 02:06 PM]
Hi Yossi,

Please send the full backup except build and user data. It will make the task of restoring database much easier.

Thanks

Yossi Ben Haroosh [30/Aug/10 12:58 PM]
Added remaining configuration files which are not related to users or builds

Change by Yossi Ben Haroosh [30/Aug/10 12:58 PM]
Attachment remainingdb.zip [ 10191 ]

Robin Shen [30/Aug/10 03:08 PM]
Thanks for sending the files. I restored and checked the setting, and it seems correct to me. Only two possible reasons:
1. Mis-spelled Perforce path string in build condition, please note that the path is case sensitive
2. You are expecting QuickBuild to capture changes from a repository not referenced from reachable steps. In your case, only repository "Branches code" is referenced, and the "getInvolvedRepositories()" will only return this repository. If you wants to check changes from other repositories for example 'Neo code", you will need to modify snapshot taking script and build condition like below:
snapshot taking:
repositories.get("Neo code").takeSnapshot();
repositories.get("Branches code").takeSnapshot();

build condition:
if (repositories.get("Neo code").isChanged("//some/repository/branch/**"))
  return true;
if (repositories.get("Branches code").isChanged("//some/repository/branch/**"))
  return true;
return false;

Change by Robin Shen [31/Aug/11 03:42 AM]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Cannot Reproduce [ 5 ]