Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Github Builds won't Build if no new commits #4113

Michaelcc73 ·

Is there a way to ensure that a build runs in certain, even if no new commits are detected in a GitHub repository? Even when building a configuraiton manually it seems that QB will not honor the request.

We recently had an issue where a change was detected, but the build agents were down so the build couldn't run. Once we got the agents up, the build wouldn't run because QB no longer detected any changes. We've seen this in the past for other issues that have occurred in our build pipeline.

Below is the log output from the QB server when this occurred. As you can see, we hit an error on 2 configurations because there were no applicable nodes available to run the build on. The nodes were started, but the server never registered the new commits again, so no builds kicked off.

2019-06-14 15:14:18,684 [pool-1-thread-20] WARN  com.pmease.quickbuild.DefaultBuildEngine - No any short branches to build in configuration root/Maven/Builds/Git/Utilities/ACM/TestProject/release.
2019-06-14 15:14:18,686 [pool-1-thread-20] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release'
2019-06-14 15:14:19,357 [pool-1-thread-21] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/develop' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop' as it does not have new commits since last check.
2019-06-14 15:14:19,359 [pool-1-thread-21] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop'
2019-06-14 15:15:16,533 [pool-1-thread-21] INFO  com.pmease.quickbuild.DefaultBuildEngine - Requesting build of branch com.pmease.quickbuild.repositorysupport.ShortBranch@10b8c2de of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop'...
2019-06-14 15:15:16,538 [pool-1-thread-21] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop'
2019-06-14 15:15:16,540 [Thread-74] ERROR com.pmease.quickbuild.DefaultBuildEngine - Error allocating node for step 'master'.
    com.pmease.quickbuild.QuickbuildException: Can not find any node matching specified criteria.
        at com.pmease.quickbuild.DefaultBuildEngine.run(DefaultBuildEngine.java:1338)
        at java.lang.Thread.run(Thread.java:745)
2019-06-14 15:15:19,313 [pool-1-thread-23] INFO  com.pmease.quickbuild.DefaultBuildEngine - Requesting build of branch com.pmease.quickbuild.repositorysupport.ShortBranch@6e4e236f of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release'...
2019-06-14 15:15:19,318 [pool-1-thread-23] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release'
2019-06-14 15:15:19,320 [Thread-74] ERROR com.pmease.quickbuild.DefaultBuildEngine - Error allocating node for step 'master'.
    com.pmease.quickbuild.QuickbuildException: Can not find any node matching specified criteria.
        at com.pmease.quickbuild.DefaultBuildEngine.run(DefaultBuildEngine.java:1338)
        at java.lang.Thread.run(Thread.java:745)
2019-06-14 15:16:13,774 [pool-1-thread-23] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/release/0.1.13' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release' as it does not have new commits since last check.
2019-06-14 15:16:13,776 [pool-1-thread-23] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release'
2019-06-14 15:16:20,493 [pool-1-thread-21] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/develop' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop' as it does not have new commits since last check.
2019-06-14 15:16:20,495 [pool-1-thread-21] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop'
2019-06-14 15:17:10,669 [pool-1-thread-20] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/release/0.1.13' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release' as it does not have new commits since last check.
2019-06-14 15:17:10,672 [pool-1-thread-20] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release'
2019-06-14 15:17:13,401 [qtp1918993480-50] INFO  com.pmease.quickbuild.grid.DefaultAgentManager - Retrieving node characteristics from agent 'RI150WS2902:8811'...
2019-06-14 15:17:13,451 [qtp1918993480-50] INFO  com.pmease.quickbuild.grid.DefaultAgentManager - Build agent 'RI150WS2902:8811' is active.
2019-06-14 15:17:17,807 [qtp1918993480-36] INFO  com.pmease.quickbuild.grid.DefaultAgentManager - Retrieving node characteristics from agent 'RI150WS2902:8812'...
2019-06-14 15:17:17,865 [qtp1918993480-36] INFO  com.pmease.quickbuild.grid.DefaultAgentManager - Build agent 'RI150WS2902:8812' is active.
2019-06-14 15:17:23,606 [pool-1-thread-21] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/develop' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop' as it does not have new commits since last check.
2019-06-14 15:17:23,609 [pool-1-thread-21] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop'
2019-06-14 15:18:32,773 [pool-1-thread-24] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/release/0.1.13' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release' as it does not have new commits since last check.
2019-06-14 15:18:32,775 [pool-1-thread-24] WARN  com.pmease.quickbuild.DefaultBuildEngine - Build requested for configured branches in configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/release'
2019-06-14 15:18:34,252 [pool-1-thread-21] INFO  com.pmease.quickbuild.DefaultBuildEngine - Will not queue build request for branch 'refs/heads/develop' of configuration 'root/Maven/Builds/Git/Utilities/ACM/TestProject/develop' as it does not have new commits since last check.
  • replies 1
  • views 1957
  • stars 0
robinshen ADMIN ·

Please edit advanced setting to disable the option "queue changed branches only" in this case. This option is added for performance reasons in order not to pile a lot of build requests even if there are no changes in pull requests.