I'm working on a project that is using the git-flow branching model<http://nvie.com/posts/a-successful-git-branching-model/>. What I want to do is have 4 Jobs: Production, Development, Any hotfix branch and Any branch not included in the first three. The issue is that, at a given point in time, there might not be a branch that matches "hotfix-*". When I set the branch to build as "hotfix-*" and no hotfix branch exists, I get the error:
ERROR: Couldn't find any revision to build. Verify the repository and > branch configuration for this job. > For my "Any Other" job, I set it up with the Inverse strategy and listed master, develop, and hotfix-*. When this runs and there is no match, the error is: All current git branches were excluded from being built. Either your branch > specifiers are too broad or you should be using the "Default" choosing > strategy. > ERROR: Couldn't find any revision to build. Verify the repository and > branch configuration for this job. > In both these cases, the result is a failed build. Is it possible to have the job treat these cases as if there are no changes and a build should not be started? Then when a branch does exist matching the expected pattern, it will perform a new build as if everything was normal. Patrick -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.