.NET Core Jenkins pipeline script for build, test, and publish automation

Example of a Jenkins pipeline script used to automate restore, build, test, and publish stages for a .NET Core project.