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

Key: QB-2114
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Andrel Vahter
Votes: 0
Watchers: 0
Operations

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

QuickBuild configuration is not tracking repository (GIT) changes if wildcard branch is used

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


 Description  « Hide
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


 All   Comments   Work Log   Change History      Sort Order:
No work has yet been logged on this issue.