jenkinsci / discord-notifier-plugin

A post-build plugin that sends the build status to a Discord channel.
https://plugins.jenkins.io/discord-notifier/
MIT License
50 stars 25 forks source link

Sending files to discord from jenkins job workspace #41

Open jessicafarias opened 2 years ago

jessicafarias commented 2 years ago

Feature Request

https://birdie0.github.io/discord-webhooks-guide/tools/curl.html#sending-attachments

curl \
  -F 'payload_json={"username": "test", "content": "hello","embeds": [...]}' \
  -F "file1=@file.log" \
  $WEBHOOKURL

I was wondering if you can add a new feature to attach files

pipeline {
discordSend description: 'description', 
file1="@file.log"
footer: '', image: 'url', link: '', result: '', thumbnail: 'url', title: '', webhookURL: ''
}
gandadil commented 1 year ago

I vote for this feature too.