|
a |
|
b/assets/adaptivecard.json |
|
|
1 |
{ |
|
|
2 |
"type": "message", |
|
|
3 |
"attachments": [ |
|
|
4 |
{ |
|
|
5 |
"contentType": "application/vnd.microsoft.card.adaptive", |
|
|
6 |
"contentUrl": null, |
|
|
7 |
"content": { |
|
|
8 |
"\$schema": "http://adaptivecards.io/schemas/adaptive-card.json", |
|
|
9 |
"msteams": { |
|
|
10 |
"width": "Full" |
|
|
11 |
}, |
|
|
12 |
"type": "AdaptiveCard", |
|
|
13 |
"version": "1.2", |
|
|
14 |
"body": [ |
|
|
15 |
{ |
|
|
16 |
"type": "TextBlock", |
|
|
17 |
"size": "Large", |
|
|
18 |
"weight": "Bolder", |
|
|
19 |
"color": "<% if (success) { %>Good<% } else { %>Attention<%} %>", |
|
|
20 |
"text": "nf-core/deepmodeloptim v${version} - ${runName}", |
|
|
21 |
"wrap": true |
|
|
22 |
}, |
|
|
23 |
{ |
|
|
24 |
"type": "TextBlock", |
|
|
25 |
"spacing": "None", |
|
|
26 |
"text": "Completed at ${dateComplete} (duration: ${duration})", |
|
|
27 |
"isSubtle": true, |
|
|
28 |
"wrap": true |
|
|
29 |
}, |
|
|
30 |
{ |
|
|
31 |
"type": "TextBlock", |
|
|
32 |
"text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors. The full error message was: ${errorReport}.<% } %>", |
|
|
33 |
"wrap": true |
|
|
34 |
}, |
|
|
35 |
{ |
|
|
36 |
"type": "TextBlock", |
|
|
37 |
"text": "The command used to launch the workflow was as follows:", |
|
|
38 |
"wrap": true |
|
|
39 |
}, |
|
|
40 |
{ |
|
|
41 |
"type": "TextBlock", |
|
|
42 |
"text": "${commandLine}", |
|
|
43 |
"isSubtle": true, |
|
|
44 |
"wrap": true |
|
|
45 |
} |
|
|
46 |
], |
|
|
47 |
"actions": [ |
|
|
48 |
{ |
|
|
49 |
"type": "Action.ShowCard", |
|
|
50 |
"title": "Pipeline Configuration", |
|
|
51 |
"card": { |
|
|
52 |
"type": "AdaptiveCard", |
|
|
53 |
"\$schema": "http://adaptivecards.io/schemas/adaptive-card.json", |
|
|
54 |
"body": [ |
|
|
55 |
{ |
|
|
56 |
"type": "FactSet", |
|
|
57 |
"facts": [<% out << summary.collect{ k,v -> "{\"title\": \"$k\", \"value\" : \"$v\"}"}.join(",\n") %> |
|
|
58 |
] |
|
|
59 |
} |
|
|
60 |
] |
|
|
61 |
} |
|
|
62 |
} |
|
|
63 |
] |
|
|
64 |
} |
|
|
65 |
} |
|
|
66 |
] |
|
|
67 |
} |