
If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
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
|
|
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
|
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 |
Show » |
|
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;