Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo build tasks not triggering Deployment plan where it is configured correctly.

Devendar Gangapuram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2024

Hi Team,

 

We have below 2 tasks in "BUILD plan" in Bamboo 9.2.10 , and after this build execution, it has to pass "release number" to "deployment plan". But on Build plan execution, it is gong to queue for longer time because it is trying to connect a bitbucket "http://bitbucket.appz.com" , which is not past of the build tasks execution. 

 

Task(1):create a properties file:-

echo pom.releaseVersion=${bamboo.proj.build.releaseVersion} > "workflow-listener.properties"
echo pom.artefactId=hello-world-service >> "workflow-listener.properties"
echo AppZ_anypoint_mule_version=3.8.4 >> "workflow-listener.properties"
more workflow-listener.properties

===========================================================

Task(2): Inject bamboo.proj.build.releaseVersion for deploy plan

Path to properties file(required)
workflow-listener.properties
Relative to the build's working directory.
Namespace(required)
proj
Namespace is used to avoid name conflicts with existing variables.
Scope of the variables
Local
Variables will only be available in this job.
Result

 

 

But while build is executing , it is going to Queue for longer time , and in logs I found below error.

Logs:-

process for build 'Retail Transformation - hello-world-service-uat - Default Job #27 (RT-HEW1UAT-JOB1-27)'\n ... running command line: \n/anw/bamboo/application-data/temp/RT-HEW1UAT-JOB1-27-ScriptBuildTask-1426818369492427374.sh\n ... in: /anw/bamboo/application-data/local-working-dir/3145729/RT-HEW1UAT-JOB1\n
2024-02-20 07:25:20,562 INFO [NavLink RestCapabilitiesClient:thread-1] [RetryExec] I/O exception (java.net.SocketException) caught when processing request to {s}->https://bitbucket-test.appD.com:443: Connection reset
2024-02-20 07:25:20,562 INFO [NavLink RestCapabilitiesClient:thread-1] [RetryExec] Retrying request to {s}->https://bitbucket-test.appD.com:443
2024-02-20 07:27:18,451 INFO [RemoteEvents CapabilitiesCacheLoader:thread-1] [RetryExec] I/O exception (java.net.SocketException) caught when processing request to {s}->https://bitbucket-test.appD.com:443: Connection reset
2024-02-20 07:27:18,451 INFO [RemoteEvents CapabilitiesCacheLoader:thread-1] [RetryExec] Retrying request to {s}->https://bitbucket-test.appD.com:443
2024-02-20 07:27:39,124 INFO [18-BAM::CD Agent::Agent:pool-31-thread-1] [BuildAgentControllerImpl] Agent 17006593 checking build queue for executables...

 

Please help me how to resolve this error. 

 

 

 

Thank you,

Dev G

 

1 answer

0 votes
Khushboo Gupta
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2024

Hello @Devendar Gangapuram

 

From your description, it seems like you're having issues with your Bamboo build plan getting stuck in the queue for a long time. This is happening because it's trying to connect to a Bitbucket server at `http://bitbucket.appz.com`, which isn't part of your build tasks execution. From the logs that you have provided, it seems that a service is trying to connect to a Bitbucket repository located at `https://bitbucket-test.appD.com:443`

We looked at the script you sent, and it appears you used more command to display the content of the file. I think this is because the "more" command is executing the script task repeatedly. Kindly see whether using the "cat" command solves the problem.

cat workflow-listener.properties.

 

Are the error logs you sent from the same build as well? If yes please follow below : 

  • Please check you Bamboo configuration as well as Bamboo plan configuration to make sure there are no tasks or dependencies that require access to the Bitbucket server. 
  • Check Web-hooks in Bitbucket: Bitbucket can use web-hooks to notify Bamboo about changes, which can then trigger builds. 

Or if you are connecting to another Bitbucket server you need to manually update your repositories in Bamboo to get the new SSH Base URL. If you have too many repositories to manually update, you can use the workaround on the below feature request to update them in bulk via a SQL query on your Bamboo database:

 

Regards,

Khushboo Gupta

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events