From f881b409102b5eb67a5ab01ef4f46cb43df55d04 Mon Sep 17 00:00:00 2001 From: zontreck Date: Mon, 16 Dec 2024 20:59:32 -0700 Subject: [PATCH] Implement Jenkinsfile --- Jenkinsfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6644ae2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +pipeline { + agent any + options { + buildDiscarder { + numToKeepStr: '5' + } + } + + stages { + stage ("Build Library") { + agent { + label 'linux' + } + steps { + sh ''' + dotnet restore + dotnet publish LibAC.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true + ''' + } + + post { + archiveArtifacts artifacts: "build/Release/net8.0/LibAC.dll" + } + } + } +} \ No newline at end of file