Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72550

jiraSendDeploymentInfo fails with OAuth 2.0 is not enabled for method: POST

XMLWordPrintable

      Hi!

      Used atlassian-jira-software-cloud-plugin for a long time and it works well in this place. But today, I got OAuth 2.0 is not enabled for method: POST error in the place that had worked yesterday.

       

      Here is Jira configuration: Screen Shot 2024-01-12 at 6.19.58 AM.png

      Here is Jenkins configuration: Screen Shot 2024-01-12 at 6.23.10 AM.png

      Here is plugin request: 

       

      jiraSendDeploymentInfo environmentId: 'staging', environmentName: 'staging', environmentType: 'staging', issueKeys: issueKeys.split('\n').toList()

       

      Here is log few days ago:

       

      2024-01-04 23:40:53.519  [Pipeline] jiraSendDeploymentInfo
      2024-01-04 23:40:53.590  [ATLASSIAN CLOUD PLUGIN] [INFO] sending request to Jenkins app in Jira: {"requestType":"event","eventType":"deployment","pipelineName":"#86","status":"successful","lastUpdated":"2024-01-05T05:40:53.589113Z","payload":{"properties":{"source":"jenkins"},"providerMetadata":{"product":"jenkins"},"deployments":[{"deploymentSequenceNumber":86,"updateSequenceNumber":1704433253,"associations":[{"values":["PRO-4233"],"associationType":"issueKeys"}],"displayName":"#86","url":"https://jenkins.*******.io/job/jira%20deploy/86/","description":"#86","lastUpdated":"2024-01-05T05:40:53.589113Z","label":"#86","state":"successful","pipeline":{"id":"-1999851111","displayName":"jira deploy","url":"https://jenkins.*******.io/job/jira%20deploy/"},"environment":{"id":"staging","displayName":"staging","type":"staging"},"schemaVersion":"1.0"}]},"pipelineId":"-1999851111"}
      2024-01-04 23:40:55.975  [ATLASSIAN CLOUD PLUGIN] [INFO] jiraSendDeploymentInfo(****-team.atlassian.net): SUCCESS_DEPLOYMENT_ACCEPTED: Successfully sent deployment information to Jira: ****-team.atlassian.net. Accepted deployments: [DeploymentKeyResponse{pipelineId='-1999851111'environmentId='staging', deploymentSequenceNumber=86}].

      Nothing was changed on our side BUT today we got an error:

       

      2024-01-11 22:58:40.590  [ATLASSIAN CLOUD PLUGIN] [INFO] sending request to Jenkins app in Jira: {"requestType":"event","eventType":"deployment","pipelineName":"#99","status":"successful","lastUpdated":"2024-01-12T04:58:40.589928Z","payload":{"properties":{"source":"jenkins"},"providerMetadata":{"product":"jenkins"},"deployments":[{"deploymentSequenceNumber":99,"updateSequenceNumber":1705035520,"associations":[{"values":["PRO-4835"],"associationType":"issueKeys"}],"displayName":"#99","url":"https://jenkins.*******.io/job/release/job/*******-release-start/99/","description":"#99","lastUpdated":"2024-01-12T04:58:40.589928Z","label":"#99","state":"successful","pipeline":{"id":"-64753551","displayName":"release/*******-release-start","url":"https://jenkins.*****.io/job/release/job/*******-release-start/"},"environment":{"id":"staging","displayName":"staging","type":"staging"},"schemaVersion":"1.0"}]},"pipelineId":"-64753551"}
      2024-01-11 22:58:42.368  [ATLASSIAN CLOUD PLUGIN] [ERROR] HTTP status 403 when calling Jenkins app in Jira: {"errorMessages":["OAuth 2.0 is not enabled for method: POST /jira/deployments/0.1/cloud/69bdb438-7972-4496-a0b2-415cf7a8a101/bulk"]}
      2024-01-11 22:58:42.369  [ATLASSIAN CLOUD PLUGIN] [INFO] jiraSendDeploymentInfo(****-team.atlassian.net): FAILURE_DEPLOYMENTS_API_RESPONSE: Failed to send deployment information to Jira: ****-team.atlassian.net. {"errorMessages":["OAuth 2.0 is not enabled for method: POST /jira/deployments/0.1/cloud/69bdb438-7972-4496-a0b2-415cf7a8a101/bulk"]}. Failed Dependency errors can be related to a network glitch. Please try again and if it continues to fail, please reach out to Atlassian support via https://support.atlassian.com/contact/
      2024-01-11 22:58:42.369  [Pipeline] } 

      Also you can find Jira Plugin log here - Screen Shot 2024-01-12 at 6.35.08 AM.png

      It says that Jira was reached from Jenkins and deployment: 99 created but Tickets could not be updated any more.

       

       

            rafalmyslek Rafal Myslek
            rodion_banar Rodion
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: