If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
Created: 09/Jul/14 07:18 AM
Updated: 11/Jul/14 11:09 PM
|
|
Component/s: |
None
|
Affects Version/s: |
5.1.12
|
Fix Version/s: |
None
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
Environment:
|
Not related to environment. Reproducible in our Dev/Test/Live machines
|
|
We have a configuration, that should track and trigger build if changes are made in different branches of a GIT repo.
So we have set up a configuration with a Git repo.
Branch Name = ${vars.get("gitBranch")}
Variable - gitBranch = TEST-*
Scheduled every 5 min.
Build Condition = If changes found in referenced repositories
The configuration is sadly never triggered.
If the gitBranch variable is not set as a wildcard parameter (example TEST-1)
The Build is triggered as expected.
There is currently a workaround with groovy script we use. But this could work out of the box with "If changes found in referenced repositories"
Workaround itself is:
Build Condition: If specified script evaluates to true.
groovy:
for (repository in configuration.getReferencedRepositories()) {
if (repository instanceof com.pmease.quickbuild.dependency.QuickbuildRepository) {
continue;
}
if (repository.name=="reponame" && repository.isChanged())
{
return true;
}
}
return false;
All the best and hope to hear from you,
Andrel
|
Description
|
We have a configuration, that should track and trigger build if changes are made in different branches of a GIT repo.
So we have set up a configuration with a Git repo.
Branch Name = ${vars.get("gitBranch")}
Variable - gitBranch = TEST-*
Scheduled every 5 min.
Build Condition = If changes found in referenced repositories
The configuration is sadly never triggered.
If the gitBranch variable is not set as a wildcard parameter (example TEST-1)
The Build is triggered as expected.
There is currently a workaround with groovy script we use. But this could work out of the box with "If changes found in referenced repositories"
Workaround itself is:
Build Condition: If specified script evaluates to true.
groovy:
for (repository in configuration.getReferencedRepositories()) {
if (repository instanceof com.pmease.quickbuild.dependency.QuickbuildRepository) {
continue;
}
if (repository.name=="reponame" && repository.isChanged())
{
return true;
}
}
return false;
All the best and hope to hear from you,
Andrel
|
Show » |
No work has yet been logged on this issue.
|
|