Open padepokan79dev opened 2 years ago
Seconding this request. I've recently migrated my project from freestyle to pipeline builds, and it appears there is no way to make this plugin send the default freestyle layout on a pipeline.
As an update, this discordSend
invocation should produce an embed that is pretty similar to the freestyle one, though it needs the latest git master version of this plugin due to the usage of description
, enableArtifactsList
and showChangeset
:
def result = currentBuild.currentResult.toLowerCase()
discordSend webhookURL: DISCORD_WEBHOOK_URL,
title: "${env.JOB_BASE_NAME} #${env.BUILD_NUMBER}",
result: currentBuild.currentResult,
description: "**Build:** ${env.BUILD_NUMBER}\n**Status:** ${result}\n\u2060", /* word joiner character forces a blank line */
enableArtifactsList: true,
showChangeset: true
How can i download hpi plugin from master?
As an update, this
discordSend
invocation should produce an embed that is pretty similar to the freestyle one, though it needs the latest git master version of this plugin due to the usage ofdescription
,enableArtifactsList
andshowChangeset
:def result = currentBuild.currentResult.toLowerCase() discordSend webhookURL: DISCORD_WEBHOOK_URL, title: "${env.JOB_BASE_NAME} #${env.BUILD_NUMBER}", result: currentBuild.currentResult, description: "**Build:** ${env.BUILD_NUMBER}\n**Status:** ${result}\n\u2060", /* word joiner character forces a blank line */ enableArtifactsList: true, showChangeset: true
Cool
Can you tell me how to send notification to discord like this at Jenkins Pipeline Jobs?
at this image i'm using freestyle jobs![image](https://user-images.githubusercontent.com/73623226/136489966-67976d7a-3b87-4b0d-88a2-943a2a012033.png)
Thank's before