#!/bin/bash # @pipeline step_one() { echo "Step 1: Setup" mkdir -p /tmp/bake-test-output echo "step1-done" > /tmp/bake-test-output/step1.txt } # @pipeline step_two() { echo "Step 2: Build" echo "step2-done" > /tmp/bake-test-output/step2.txt } # @pipeline step_three() { echo "Step 3: Verify" if [ -f /tmp/bake-test-output/step1.txt ] && [ -f /tmp/bake-test-output/step2.txt ]; then echo "All steps completed successfully" else echo "ERROR: Missing step outputs" exit 1 fi }