i have low hopes for this
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit

This commit is contained in:
adam 2024-11-09 23:27:42 -05:00
parent 2730940432
commit 26e5bd010e

15
Jenkinsfile vendored
View File

@ -5,7 +5,20 @@ pipeline {
stage('nuget'){ stage('nuget'){
steps{ steps{
dotnetPack(outputDirectory: "./", project: "nugettest/") 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: "./")
} }
} }
} }