You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am using Bamboo version 7.2.2 and I have a builder task that uses the Visual Studio (devenv.exe) executable to build a C++ API. My solution consists of 2 projects, and I build with the option "/rebuild Release" and platform x86.
The job's log shows that Visual Studio has succeeded in building the 2 projects, but Bamboo never ends the task; it gets stuck for hours, and therefore the following tasks in the stage are never executed.
This is the last message in the job's log, which is, in fact, the output from Visual Studio:
15-Mar-2021 11:58:33 ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
On the other hand, the Bamboo log file shows the following lines regarding the build process and the hung state:
2021-03-15 11:57:36,595 INFO [19-BAM::Default Agent::Agent:pool-44-thread-1] [ProcessServiceImpl] Beginning to execute external process for build 'Tests - Test_Src - Default Job #53 (TESTS-TESTSRC-JOB1-53)'\n ... running command line: \nC:\Atlassian\ApplicationData\bamboo-home\DotNetSupport\devenvrunner.bat C:\Atlassian\ApplicationData\bamboo-home\xml-data\build-dir\TESTS-TESTSRC-JOB1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community x86 test.sln /rebuild Release\n ... in: C:\Atlassian\ApplicationData\bamboo-home\xml-data\build-dir\TESTS-TESTSRC-JOB1\n
2021-03-15 12:18:35,619 WARN [scheduler_Worker-7] [BuildHangingMonitor] Bamboo has detected that TESTS-TESTSRC-JOB1-53 may have hung.
2021-03-15 12:18:35,620 WARN [scheduler_Worker-7] [BuildHangingMonitor] Time Since Last Log: 1202577, Max log time: 1200000
2021-03-15 12:18:35,641 WARN [scheduler_Worker-7] [BuildHangingMonitor] Expected Build Time: 5055.0, Current Build Time: 1259029
Looking at both logs, the build process took around a minute to be executed (which is normal), and around 20 minutes later Bamboo noticed that it was hung. Unfortunately, there's no more feedback that could give me a hint of what could be wrong.
I have tested this behavior with a very simple Hello World solution, consisting of a single C++ console app project. I get the same results; the executable is compiled correctly and the log shows that it was successfully built, but the builder task hangs forever.
I would appreciate any clues to solve this issue. Thanks in advance!