Pcornel
Automation · CI/CD

Job

Cheat sheet · https://pcornel.dk/topic.php?topic=5500

Back to the Topic

Answer

A Job is an independently scheduled unit of pipeline execution with a defined environment, inputs, commands/actions, dependencies, outputs and result.

Remember

  • Job exit success ≠ intended target effect; scripts can return success while checks are skipped, partial results are hidden or asynchronous work remains incomplete.
  • Pipeline status is execution evidence, not independent proof of target service health or business outcome.
  • The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
  • Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.

First checks

  • Job definition (image, steps, needs) — configuration
  • Job logs — output
  • Job timeouts — limits

Verify in this order

job → runner → steps → result

Where it usually breaks

Job exit success ≠ intended target effect; scripts can return success while checks are skipped, partial results are hidden or asynchronous work remains incomplete.

Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path.

Job CI/CD proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Trigger / evaluationExact commit and evaluated pipeline/inputs are knownWrong ref, inherited rule or hidden variable changes the run
Execution / validationExpected worker, jobs and tests execute with traceable contextSkips, retries, stale cache or worker drift hides the failure
Artifact / promotionImmutable artifact is linked to release, approval and environmentRebuild/mutable tag breaks provenance or approval scope
Target proofRollout plus independent readiness/acceptance confirms the intended releasePipeline/API success is treated as runtime health

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5500

Confirmation

Confirm action

Continue?