Skip to content

Argo Workflows Output Quick Fix - Step Output Parameters

DodaTech Updated 2026-06-26 1 min read

Argo Workflows output parameters capture step results for use in downstream steps. Misconfigured output parameters cause empty or missing values. This guide covers the fix.

Quick Fix

Wrong

- name: generate-version
  script:
    image: alpine:latest
    command: [sh]
    source: |
      echo "v1.0.0"

The output is printed to stdout but not captured as a parameter. The next step cannot access the version value.

- name: generate-version
  outputs:
    parameters:
    - name: version
      valueFrom:
        path: /tmp/version
  script:
    image: alpine:latest
    command: [sh]
    source: |
      echo -n "v1.0.0" > /tmp/version
# Expected output after applying the fix
# Parameter version: "v1.0.0"
# Next step accesses: {{steps.generate-version.outputs.parameters.version}}
# Output captured from file at /tmp/version
# Step status: Succeeded

Prevention

  • Declare outputs.parameters with valueFrom.path for each output
  • Write output values to the specified path in scripts
  • Use echo -n to avoid trailing newlines in parameter values
  • Use valueFrom.jsonPath for extracting values from JSON files
  • Test output consumption with argo get <workflow> -o json

DodaTech Tools

Doda Browser's output inspector shows parameter values at each workflow step. DodaZIP archives output parameters for workflow run history. Durga Antivirus Pro validates output values against injection patterns.

FAQ

What is the difference between valueFrom.path and valueFrom.jsonPath?

path reads the entire file as the parameter value. jsonPath extracts a specific field from a JSON file. Use jsonPath for structured data extraction. ||| Can a step have multiple output parameters? Yes, declare multiple parameters in outputs.parameters. Each can read from a different path or jsonPath expression. ||| How do I reference a step's output from another template? Use {{tasks.<task-name>.outputs.parameters.<name>}} in DAG templates, or {{steps.<step-name>.outputs.parameters.<name>}} in steps templates.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro