Skip to content

Instantly share code, notes, and snippets.

@DevWouter
Created July 18, 2018 10:11
Show Gist options
  • Save DevWouter/02b10cd916f15c800167db0614bbf725 to your computer and use it in GitHub Desktop.
Save DevWouter/02b10cd916f15c800167db0614bbf725 to your computer and use it in GitHub Desktop.
tutorial-input
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
}
}
}
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Include="helloworld.cs" />
</ItemGroup>
<Target Name="Build">
<Csc Sources="@(Compile)"/>
</Target>
</Project>
node { ws {
def msbuild_tool = tool(
name: 'MSBuild 4 (x64)',
type: 'hudson.plugins.msbuild.MsBuildInstallation');
stage("checkout") {
checkout scm;
}
stage("build") {
bat "${msbuild_tool} helloworld.csproj"
}
stage("test") {
echo "Voer de tests uit"
}
stage("deploy") {
echo "Deploy naar de juiste omgeving"
}
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment