What you’ll learn

  • Reuse the same static-site validation.
  • Deploy from Azure Pipelines to S3.
  • Keep AWS secrets out of YAML.

When you’re finished

  • Run a validated S3 deployment from Azure Pipelines.

Reuse jenkins-static-site-demo.

7.1 Reuse the static site

Do not rewrite the site for Azure Pipelines.

The repository already contains:

site/
scripts/Test-StaticSite.ps1

That is intentional. We are comparing pipeline platforms, not building three different applications.

7.2 Validate and deploy

Pipeline flow:

Checkout
   ↓
Run Test-StaticSite.ps1
   ↓
PASS?
 ├── No → fail pipeline
 └── Yes
       ↓
  aws s3 sync

A representative PowerShell step:

- powershell: |
    ./scripts/Test-StaticSite.ps1
  displayName: Validate static site

Then deploy only after validation succeeds.

7.3 Protect secrets

Do not commit AWS keys into YAML.

Use an approved secret mechanism, such as:

  • secret pipeline variables,
  • variable groups,
  • a service connection/integration where appropriate,
  • federated/short-lived credentials in more advanced configurations.

The exact production authentication design is intentionally deferred until after the basic pipeline is understood.