What you’ll learn

  • What CI and CD mean.
  • The difference between build, test, package, and deploy.
  • Pipeline terminology shared across platforms.
  • Hosted versus self-hosted execution.

When you’re finished

  • Explain CI versus CD in your own words.
  • Identify build, test, artifact, trigger, agent/runner, stage, job, and step.

1.1 What CI/CD means

Continuous Integration (CI) means integrating changes frequently and automatically checking whether the integrated result is healthy.

A basic CI flow is:

Edit → Commit → Push → Build → Test → Report

Continuous Delivery means keeping the software in a state that is ready to deploy.

Continuous Deployment goes one step further and automatically deploys a successful change.

For this guide:

C# demo:
Commit → Build → Test → Publish executable
              CI

Static-site demo:
Commit → Validate → Deploy to S3
            CI       CD

1.2 Build, test, package, and deploy

These words are related, but they are not interchangeable.

  • Build — turn source code into runnable output.
  • Test — verify expected behavior.
  • Package/Publish — prepare files that can be distributed or deployed.
  • Deploy — place the application or site in its runtime destination.

A C# program can compile successfully and still fail a test. That distinction is one of the first things we will deliberately demonstrate.

Static HTML usually has no compile step. It can still be validated and tested before deployment.

1.3 Pipelines, stages, jobs, steps, and artifacts

A pipeline is the full automated workflow.

A pipeline is commonly divided into named stages:

Checkout → Build → Test → Publish → Deploy

A job is a unit of work assigned to an execution machine.

A step is an individual command or task inside a job or stage.

An artifact is output preserved from a run, such as:

  • .exe
  • .dll
  • ZIP package
  • test report
  • static-site package

A trigger decides when the pipeline starts. Common triggers include:

  • manual request
  • source-control push
  • pull request
  • schedule
  • another pipeline

1.4 Hosted versus self-hosted execution

Self-hosted means you supply the machine.

Examples:

  • Jenkins on your Windows PC
  • Jenkins on an EC2 instance
  • a self-hosted GitHub Actions runner

Hosted means the CI/CD provider supplies an ephemeral build machine.

Examples:

  • Microsoft-hosted Azure Pipelines agent
  • GitHub-hosted Actions runner

The underlying work is still familiar:

Get source → run commands → collect results

The major difference is who owns and maintains the execution environment.

1.5 The same idea across all three platforms

Source change
    │
    ▼
Trigger
    │
    ▼
Execution machine
    │
    ├── Build / Validate
    ├── Test
    ├── Package / Publish
    └── Deploy

The names change, but the underlying idea does not:

Concept Jenkins Azure Pipelines GitHub Actions
Execution machine Agent Agent Runner
Pipeline file Jenkinsfile azure-pipelines.yml .github/workflows/*.yml
Start condition Trigger/webhook Trigger Event
Preserved output Archived artifact Pipeline artifact Workflow artifact

Advanced note: Real systems may use parallel jobs, matrices, ephemeral agents, reusable templates, approvals, and multiple environments. The beginner path intentionally starts with a single linear pipeline.

Chapter checkpoint

You should now be able to explain:

  • why CI is broader than compiling,
  • the difference between build and test,
  • what an artifact is,
  • what a pipeline trigger does,
  • and why static HTML can still participate in CI/CD.