'PIPE Connection to jenkins timing out

Any help sooner would be greatly appreciated

I am using PIPE to connect to Jenkins pipeline from BB and using the below code in my BB.yml

- step: &functionalTest
    name: functional test
    image: python:3.9
    script:
      - pipe: atlassian/jenkins-job-trigger:0.1.1
        variables:
          JENKINS_URL: '<<myJenkinsURL>>'
          JENKINS_USER: '<<myJenkinsUser>>'
          JENKINS_TOKEN: $JENKINS_USER_TOKEN
          JOB_NAME: '<<myJenkinsJob>>'
          WAIT: 'true'
          WAIT_MAX_TIMEOUT: 500

It was working fine until last week. However, since Friday I can see number failures in BB pipeline with the timeout. Though the Jenkins job is successful and took only 4 mins and 56 secs to execute all test cases. Also I have WAIT_MAX_TIMEOUT: 500 (almost 8 mins max timeout)

Exception:

✖ Timeout while waiting for jenkins job with build number 254 to be completed

PS: Jenkins job for this build ID is successful in 5 mins (including the Sonar report generation)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source