Files
pipeline-test/README.md
2026-03-31 21:03:38 +02:00

585 B

HelloWorld .NET with Jenkins and Docker

This repository contains:

  • HelloWorldApp - .NET 10 console app
  • HelloWorldApp.Tests - xUnit tests
  • Jenkinsfile - Jenkins pipeline to build, test, containerize and push image
  • HelloWorldApp/Dockerfile - multi-stage .NET Docker build

Local build + test

dotnet test HelloWorld.slnx

Build Docker image locally

cd HelloWorldApp
docker build -t your-registry.example.com/helloworldapp:latest .

Run Docker image locally

docker run --rm your-registry.example.com/helloworldapp:latest