From 26e5bd010edaf63565c99ff6c9c8a79a8a4cab71 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 9 Nov 2024 23:27:42 -0500 Subject: [PATCH] i have low hopes for this --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 414f63f..bc52784 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,20 @@ pipeline { stage('nuget'){ steps{ dotnetPack(outputDirectory: "./", project: "nugettest/") - dotnetNuGetPush() + + def BUILD_NUMBER = "$BUILD_NUMBER" + sh """ + files=( ./*.nupkg) + fullfilename=$(basename -- ${files[0]}) + noext=${fullfilename%.*} + + mv fullfilename $noext-$BUILD_NUMBER.nupkg + + files=null + fullfilename=null + noext=null + """ + dotnetNuGetPush(root: "./") } } }