From f5402f66358d02877fe591c776fef108c7d22450 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 9 Nov 2024 22:54:36 -0500 Subject: [PATCH] nuget pack and push --- Jenkinsfile | 1 + nugettest/Program.cs | 2 ++ nugettest/nugettest.csproj | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 nugettest/Program.cs create mode 100644 nugettest/nugettest.csproj diff --git a/Jenkinsfile b/Jenkinsfile index 4188b01..414f63f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,7 @@ pipeline { stages { stage('nuget'){ steps{ + dotnetPack(outputDirectory: "./", project: "nugettest/") dotnetNuGetPush() } } diff --git a/nugettest/Program.cs b/nugettest/Program.cs new file mode 100644 index 0000000..3751555 --- /dev/null +++ b/nugettest/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/nugettest/nugettest.csproj b/nugettest/nugettest.csproj new file mode 100644 index 0000000..4a66b75 --- /dev/null +++ b/nugettest/nugettest.csproj @@ -0,0 +1,11 @@ + + + + Exe + net8.0 + enable + enable + true + + +