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