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

Send Notification Pipeline Declarative - Help #43

Open
padepokan79dev opened this issue Oct 8, 2021 · 4 comments
Open

Send Notification Pipeline Declarative - Help #43

padepokan79dev opened this issue Oct 8, 2021 · 4 comments

Comments

@padepokan79dev
Copy link

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

Thank's before

@richardg867
Copy link

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.

@richardg867
Copy link

richardg867 commented Nov 15, 2021

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

@rasperepodvipodvert
Copy link

How can i download hpi plugin from master?

@rizqikazukun
Copy link

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

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants