Skip to content
Discussion options

You must be logged in to vote

Hi there!

So, currently the way the data input/output system is designed is to use STDIO (on both ends). So if you write some data output in one job, and wire that to a secondary job, it is passed in as part of the JSON to STDIN.

The assumption is that you are using a language that supports JSON natively, so this is easy to consume and parse. For using bash shell, you will need to use a 3rd party tool such as jq. Example of that:

#!/bin/bash

IFS= read -r line
workflow_log_id=$(printf '%s\n' "$line" | jq -r '.input.data.workflow_log_id')
echo "Workflow Log ID is: $workflow_log_id"

As for using a piece of data produced by one job across ALL jobs in the same workflow, this is more tricky. T…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
7 replies
@matt-rgx
Comment options

@matt-rgx
Comment options

@jhuckaby
Comment options

@jhuckaby
Comment options

@jhuckaby
Comment options

Answer selected by matt-rgx
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jhuckaby
Comment options

@matt-rgx
Comment options

@jhuckaby
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants