We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12f7ad1 commit 4bcc619Copy full SHA for 4bcc619
functions/index.js
@@ -8,18 +8,13 @@ var cmd = require('./command.js'),
8
k8sCommand = require('./kubernetes/k8sCommand.js').k8sCommand,
9
bojK8sCommand = require('./kubernetes/bojK8sCommand.js').bojK8sCommand;
10
11
-function print(ins, outs, config, cb) {
12
- //console.log("PRINT", JSON.stringify(ins));
13
- ins.forEach(function(input) {
14
- //console.log("sigId=", input.sigId + ":", input.data[0])
15
- //console.log(JSON.stringify(input, null, 2));
16
- if (input.data && input.data[0].value) {
17
- console.log(input.data[0].value);
18
- } else {
19
- console.log(JSON.stringify(input, null, 2));
20
- }
21
- });
22
- cb(null, outs);
+function print(ins, outs, context, cb) {
+ console.log("Running task", context.name, "(" + context.taskId + ")")
+ console.log(context.executor)
+ if (context.traceInfo) {
+ console.log("Trace info:", context.traceInfo)
+ }
+ cb(null, outs);
23
}
24
25
function print2(ins, outs, config, cb) {
0 commit comments