Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions assets/adaptivecard.json

This file was deleted.

34 changes: 0 additions & 34 deletions assets/slackreport.json

This file was deleted.

1 change: 0 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ workflow {
params.plaintext_email,
params.outdir,
params.monochrome_logs,
params.hook_url,
NFCORE_DEMO.out.multiqc_report
)
}
Expand Down
15 changes: 14 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ params {
email_on_fail = null
plaintext_email = false
monochrome_logs = false
hook_url = null
help = false
help_full = false
show_hidden = false
Expand Down Expand Up @@ -273,6 +272,20 @@ manifest {
// Nextflow plugins
plugins {
id '[email protected]' // Validation of pipeline parameters and creation of an input channel from a sample sheet
id '[email protected]' // Slack notifications for workflow events
}

// Slack notification configuration
slack {
enabled = true
webhook = System.getenv('SLACK_WEBHOOK_URL')
notifyOnStart = true
notifyOnComplete = true
notifyOnError = true
username = 'Nextflow Bot'
iconEmoji = ':rocket:'
includeCommandLine = true
includeResourceUsage = true
}

validation {
Expand Down
7 changes: 0 additions & 7 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,6 @@
"fa_icon": "fas fa-palette",
"hidden": true
},
"hook_url": {
"type": "string",
"description": "Incoming hook URL for messaging service",
"fa_icon": "fas fa-broadcast-tower",
"help_text": "Incoming hook URL for messaging service. Currently, MS Teams and Slack are supported.",
"hidden": true
},
"multiqc_config": {
"type": "string",
"format": "file-path",
Expand Down
5 changes: 0 additions & 5 deletions subworkflows/local/utils_nfcore_demo_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ include { paramsSummaryMap } from 'plugin/nf-schema'
include { samplesheetToList } from 'plugin/nf-schema'
include { completionEmail } from '../../nf-core/utils_nfcore_pipeline'
include { completionSummary } from '../../nf-core/utils_nfcore_pipeline'
include { imNotification } from '../../nf-core/utils_nfcore_pipeline'
include { UTILS_NFCORE_PIPELINE } from '../../nf-core/utils_nfcore_pipeline'
include { UTILS_NEXTFLOW_PIPELINE } from '../../nf-core/utils_nextflow_pipeline'

Expand Down Expand Up @@ -111,7 +110,6 @@ workflow PIPELINE_COMPLETION {
plaintext_email // boolean: Send plain-text email instead of HTML
outdir // path: Path to output directory where results will be published
monochrome_logs // boolean: Disable ANSI colour codes in log output
hook_url // string: hook URL for notifications
multiqc_report // string: Path to MultiQC report

main:
Expand All @@ -135,9 +133,6 @@ workflow PIPELINE_COMPLETION {
}

completionSummary(monochrome_logs)
if (hook_url) {
imNotification(summary_params, hook_url)
}
}

workflow.onError {
Expand Down
64 changes: 0 additions & 64 deletions subworkflows/nf-core/utils_nfcore_pipeline/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading