Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification can be sent to channel but no content shown inside the channel #101

Open
cnrleemkh opened this issue Dec 1, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cnrleemkh
Copy link

Jenkins and plugins versions report

Notification can be sent to channel but no content shown inside the channel
Jenkins: 2.379
OS: Linux - 4.4.180+
---
ace-editor:1.1
ant:481.v7b_09e538fcca
antisamy-markup-formatter:155.v795fb_8702324
apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61
bootstrap4-api:4.6.0-5
bootstrap5-api:5.2.1-3
bouncycastle-api:2.26
branch-api:2.1046.v0ca_37783ecc5
build-timeout:1.20
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
checks-api:1.8.0
cloudbees-folder:6.722.v8165b_a_cf25e9
command-launcher:90.v669d7ccb_7c31
commons-lang3-api:3.12.0-36.vd97de6465d5b_
commons-text-api:1.10.0-27.vb_fa_3896786a_7
copyartifact:1.46.4
credentials:1214.v1de940103927
credentials-binding:523.vd859a_4b_122e6
discord-notifier:206.vee9f4569ee63
display-url-api:2.3.6
durable-task:501.ve5d4fc08b0be
echarts-api:5.4.0-1
email-ext:2.89
font-awesome-api:6.2.0-3
git:4.14.1
git-client:3.13.0
git-server:1.9
github:1.36.0
github-api:1.303-400.v35c2d8258028
github-branch-source:2.9.0
github-oauth:0.33
gradle:2.1.1
handlebars:3.0.8
instance-identity:116.vf8f487400980
ionicons-api:31.v4757b_6987003
jackson2-api:2.13.4.20221013-295.v8e29ea_354141
jakarta-activation-api:2.0.1-2
jakarta-mail-api:2.0.1-2
javax-activation-api:1.2.0-5
javax-mail-api:1.6.2-8
jaxb:2.3.7-1
jdk-tool:63.v62d2fd4b_4793
jquery-detached:1.2.1
jquery3-api:3.6.1-2
jsch:0.1.55.61.va_e9ee26616e7
junit:1160.vf1f01a_a_ea_b_7f
ldap:2.9
lockable-resources:2.18
mailer:438.v02c7f0a_12fa_4
material-theme:0.4.1
matrix-auth:3.1.5
matrix-project:785.v06b_7f47b_c631
mina-sshd-api-common:2.9.1-44.v476733c11f82
mina-sshd-api-core:2.9.1-44.v476733c11f82
momentjs:1.1.1
okhttp-api:4.9.3-108.v0feda04578cf
pam-auth:1.10
pipeline-build-step:2.18
pipeline-github-lib:1.0
pipeline-graph-analysis:1.11
pipeline-input-step:466.v6d0a_5df34f81
pipeline-milestone-step:101.vd572fef9d926
pipeline-model-api:1.9.3
pipeline-model-definition:1.7.2
pipeline-model-extensions:1.7.2
pipeline-rest-api:2.28
pipeline-stage-step:293.v200037eefcd5
pipeline-stage-tags-metadata:1.9.3
pipeline-stage-view:2.28
plain-credentials:1.8
plugin-util-api:2.18.0
popper-api:1.16.1-3
popper2-api:2.11.6-2
postbuildscript:3.1.0-375.v3db_cd92485e1
resource-disposer:0.20
scm-api:621.vda_a_b_055e58f7
script-security:1190.v65867a_a_47126
simple-theme-plugin:103.va_161d09c38c7
slack:2.49
snakeyaml-api:1.31-84.ve43da_fb_49d0b
ssh-credentials:305.v8f4381501156
ssh-slaves:1.31.2
sshd:3.249.v2dc2ea_416e33
structs:324.va_f5d6774f3a_d
theme-manager:0.6
timestamper:1.20
token-macro:321.vd7cc1f2a_52c8
trilead-api:2.72.v2a_3236754f73
workflow-aggregator:2.7
workflow-api:1200.v8005c684b_a_c6
workflow-basic-steps:2.24
workflow-cps:3536.vb_8a_6628079d5
workflow-cps-global-lib:2.17
workflow-durable-task-step:1139.v252a_e12e8463
workflow-job:1145.v7f2433caa07f
workflow-multibranch:716.vc692a_e52371b_
workflow-scm-step:400.v6b_89a_1317c9a_
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:839.v35e2736cfd5c
ws-cleanup:0.43

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

Dockerised jenkins

Reproduction steps

  1. Create free style project
  2. In post build action, add discord notifier
  3. Paste discord webhook
  4. Save
  5. Run the job

Expected Results

Able to see content in channel

Actual Results

Cannot see content in channel

Screenshot 2022-12-01 at 5 46 08 PM

Anything else?

No response

@cnrleemkh cnrleemkh added the bug Something isn't working label Dec 1, 2022
@lapers
Copy link

lapers commented Jun 16, 2023

The same issue

pipeline {

// ...

  post {
    // Notify on failure
    failure {
      discordSend webhookURL: "https://discord.com/api/webhooks/...",
                  title: JOB_NAME,
                  description: "Jenkins Pipeline Build",
                  footer: "Footer Text",
                  link: env.BUILD_URL,
                  result: currentBuild.currentResult
    }
  }
}

@mjforan
Copy link

mjforan commented Jan 19, 2024

Make sure you actually have embeds enabled in Discord. I had them turned off because I don't like link previews.

User Settings > App Settings/Text & Images > Embeds and Link Previews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants