From ad2fc13928c669487b503b53ebf04dfb68e8c652 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 9 Nov 2024 23:53:34 -0500 Subject: [PATCH] last shouldve worked tbh --- Jenkinsfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bad5217..197e791 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,20 +2,28 @@ pipeline { agent any stages { - stage('nuget'){ + stage('nuget pack'){ steps{ dotnetPack(outputDirectory: "./", project: "nugettest/") + } + } + stage('build numberify'){ + steps{ sh """ filename=\$(ls ./*.nupkg | head -1) fullfilename=\$(basename -- \$filename) noext=\${fullfilename%.*} - mv \$fullfilename \$noext-\$BUILD_NUMBER.nupkg + mv "\$filename" \$noext-\$BUILD_NUMBER.nupkg - files=null + filename=null fullfilename=null noext=null """ + } + } + stage('publish package'){ + steps{ dotnetNuGetPush(root: "./*.nupkg") } }