CI helper scripts often choose a named check, build the command, and report a compact status line for the pipeline log.

Program

Play the script to choose the CI stage and see the modeled command and result.

ci_step_gate.sh
#!/usr/bin/env bash

stage=
case "$stage" in
    test) command="mvn test"; result="pass" ;;
    lint) command="shellcheck scripts"; result="pass" ;;
esac
echo "$stage:$command:$result"
#!/usr/bin/env bash

stage=
case "$stage" in
    test) command="mvn test"; result="pass" ;;
    lint) command="shellcheck scripts"; result="pass" ;;
esac
echo "$stage:$command:$result"
CI stage A CI stage names one check in the automated pipeline.
gate A gate reports pass or fail before later deployment steps run.
log line Stable status lines make pipeline logs easy to scan.