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: "./") } } }