<< Back to previous view

[QB-602] Build not triggered
Created: 23/Aug/10  Updated: 31/Aug/11

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Yossi Ben Haroosh Assigned To: Robin Shen
Resolution: Cannot Reproduce Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown

File Attachments: XML File Configurationsz.xml     Zip Archive remainingdb.zip    

 Description   
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

 Comments   
Comment by 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?
Comment by 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
Comment by 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
Comment by Yossi Ben Haroosh [ 30/Aug/10 12:58 PM ]
Added remaining configuration files which are not related to users or builds
Comment by 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;
Generated at Sun Oct 05 19:17:41 UTC 2025 using JIRA 189.