/TestWorkload

Primary LanguagePowerShell

authors
Microsoft, sergiimatus, m0ps

For complete guide use Dominic's Field Guide

Build .NET Core application using DC/OS and Jenkins

This is an initial set for show case of building .NET Core application on dynamically spinned up Jenkins Slave on Windows.

Spins up dynamic Jenkins slave on Windows in Docker container, checkouts GitHub repository, runs “dotnet build”, packs the TestWorkload application into zip, upload to Nexus artifacts repository, builds the application in a Docker image and finally publishes the image to DockerHub.

Example Workflow:

at Windows slave nodes:

at DC/OS cluster setup following services:

  • Jenkins from Marathon-templates/jenkins.json
  • Nexus from DC/OS catalog, just specify the static port 27092 as it has been used in the pipeline
  • Marathon-lb from DC/OS catalog

at DockerHub:

  • sign up
  • create testworkload-app repository. Grab full name, i.e. sergiimatusepam/testworkload-app

at Nexus:

  • login with default credentials
  • create raw(hosted) repository called dotnet-sample and uncheck box "Validate format"

at Jenkins: