#!/bin/bash # @pipeline init_workspace() { echo "Initializing workspace" mkdir -p /tmp/bake-after-test echo "init" > /tmp/bake-after-test/status.txt } # @pipeline # @after(init_workspace) fetch_source() { echo "Fetching source (depends on init_workspace)" echo "fetched" > /tmp/bake-after-test/source.txt } # @pipeline # @after(fetch_source) build_project() { echo "Building project (depends on fetch_source)" echo "built" > /tmp/bake-after-test/build.txt }