jenkinsci / google-chat-notification-plugin

Google Chat Notification Jenkins Plugin to send build status
https://plugins.jenkins.io/google-chat-notification/
MIT License
39 stars 20 forks source link

Google chat sending error 400 eventually #28

Closed thiagomartos closed 1 year ago

thiagomartos commented 2 years ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.263.1 OS: Windows 10 - 10.0 --- ace-editor:1.1 ant:1.11 antisamy-markup-formatter:2.1 apache-httpcomponents-client-4-api:4.5.10-2.0 bootstrap4-api:4.5.3-1 bouncycastle-api:2.18 branch-api:2.6.2 build-timeout:1.20 checks-api:1.2.0 cloudbees-folder:6.15 command-launcher:1.5 content-replace:1.6.0 credentials:2.3.14 credentials-binding:1.24 display-url-api:2.3.4 durable-task:1.35 echarts-api:4.9.0-2 email-ext:2.80 font-awesome-api:5.15.1-1 git:4.5.1 git-client:3.6.0 git-server:1.9 github:1.32.0 github-api:1.117 github-branch-source:2.9.3 google-chat-notification:1.4 google-hangouts-chat-notifier:1.0 gradle:1.36 handlebars:1.1.1 jackson2-api:2.12.0 jdk-tool:1.4 jquery-detached:1.2.1 jquery3-api:3.5.1-2 jsch:0.1.55.2 junit:1.48 ldap:1.26 lockable-resources:2.10 mailer:1.32.1 mapdb-api:1.0.9.0 matrix-auth:2.6.4 matrix-project:1.18 momentjs:1.1.1 okhttp-api:3.14.9 pam-auth:1.6 pipeline-build-step:2.13 pipeline-github-lib:1.0 pipeline-graph-analysis:1.10 pipeline-input-step:2.12 pipeline-milestone-step:1.3.1 pipeline-model-api:1.7.2 pipeline-model-definition:1.7.2 pipeline-model-extensions:1.7.2 pipeline-rest-api:2.19 pipeline-stage-step:2.5 pipeline-stage-tags-metadata:1.7.2 pipeline-stage-view:2.19 plain-credentials:1.7 plugin-util-api:1.6.1 popper-api:1.16.0-7 publish-over:0.22 publish-over-ssh:1.22 resource-disposer:0.14 scm-api:2.6.4 script-security:1.75 snakeyaml-api:1.27.0 sonar:2.13 ssh-credentials:1.18.1 ssh-slaves:1.31.4 structs:1.20 subversion:2.13.2 timestamper:1.11.8 token-macro:2.13 trilead-api:1.0.13 workflow-aggregator:2.6 workflow-api:2.40 workflow-basic-steps:2.23 workflow-cps:2.87 workflow-cps-global-lib:2.17 workflow-durable-task-step:2.37 workflow-job:2.40 workflow-multibranch:2.22 workflow-scm-step:2.11 workflow-step-api:2.23 workflow-support:3.7 ws-cleanup:0.38 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Using the API with Jenkins Pipeline, it doesn't work anymore, sending me the error 400.

Reproduction steps

  1. Install Jenkins 2.263.1 on Windows 10
  2. Install the Google Hangouts Chat Notifier Plugin via manual upload.
  3. Create a job freestyle with the following pipeline: pipeline { agent any stages { stage('Notification') { steps { hangoutsNotify message: "Any message", token: "6GKPWFWBlRLldwcdk0UL1pKFO" } } } }
  4. Run the job.

Expected Results

A notification in the chat.

Actual Results

Error 400 on console.

Anything else?

No response

Ryudo302 commented 1 year ago

Hi, @thiagomartos!

Sorry, but I think that you're talking about the Jenkins Bot App, not this plugin.