[JIRA] (JENKINS-58162) Pipeline stuck if git API is not responsible

5 views
Skip to first unread message

rangelov013@gmail.com (JIRA)

unread,
Jun 24, 2019, 8:22:02 AM6/24/19
to jenkinsc...@googlegroups.com
Valeri Rangelov created an issue
 
Jenkins / Improvement JENKINS-58162
Pipeline stuck if git API is not responsible
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: notification-plugin
Created: 2019-06-24 12:21
Environment: Jenkins Version: 2.176.1
Labels: jenkins pipeline
Priority: Critical Critical
Reporter: Valeri Rangelov

Pipeline is stay in a stuck state ( in progress ) if the GIT API is not responding. This happened with Bitbucket and manual stop of the running pipeline was needed.

In our case Job 1 is triggering Job 2 and Job 1 is waiting for Job 2 to finish and report the status of the pipeline, but because of this issue Job 2 stuck which caused also Job 1 to stuck. In order to exit from this loop manual stop was needed and after that to start manual Job 2 in order to do the task properly and send a notification to Job 1. This was caused most probably because of a little downtime in the Bitbucket API. Maybe the solution will be to set a loop for a retry and if it is not possible to send a failure notification to the JOB 1. 

 

Jenkins Version: 2.176.1
Log message:

 

[Bitbucket] Notifying commit build result[Bitbucket] Notifying commit build resultERROR: Could not send notificationsjava.io.IOException: Communication error at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.doRequest(BitbucketCloudApiClient.java:866)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rangelov013@gmail.com (JIRA)

unread,
Jun 24, 2019, 8:23:01 AM6/24/19
to jenkinsc...@googlegroups.com
Valeri Rangelov updated an issue
Change By: Valeri Rangelov
Pipeline is stay in a stuck state ( in progress ) if the GIT API is not responding. This happened with Bitbucket and manual stop of the running pipeline was needed.

In our case Job 1 is triggering Job 2 and Job 1 is waiting for Job 2 to finish and report the status of the pipeline, but because of this issue Job 2 stuck which caused also Job 1 to stuck. In order to exit from this loop manual stop was needed and after that to start manual Job 2 in order to do the task properly and send a notification to Job 1. This was caused most probably because of a little downtime in the Bitbucket API. Maybe the solution will be to set a loop for a retry and if it is not possible to send a failure notification to the JOB 1. 

 

Jenkins Version: 2.176.1
Log message:

 
{code:java}

[Bitbucket] Notifying commit build result[Bitbucket] Notifying commit build resultERROR: Could not send notificationsjava.io.IOException: Communication error at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.doRequest(BitbucketCloudApiClient.java:866)

Caused by: org.apache.http.NoHttpResponseException: api.bitbucket.org:443 failed to respond
{code}

rangelov013@gmail.com (JIRA)

unread,
Jun 25, 2019, 10:26:01 AM6/25/19
to jenkinsc...@googlegroups.com
Valeri Rangelov updated an issue
Change By: Valeri Rangelov
Issue Type: Improvement Bug
Priority: Critical Major
Reply all
Reply to author
Forward
0 new messages