2024-10-25 21:09:17 -04:00
|
|
|
pipeline {
|
2024-11-09 22:13:10 -05:00
|
|
|
agent any
|
2024-10-25 21:09:17 -04:00
|
|
|
|
|
|
|
stages {
|
2024-11-09 22:16:12 -05:00
|
|
|
stage('nuget'){
|
|
|
|
steps{
|
2024-11-09 22:54:36 -05:00
|
|
|
dotnetPack(outputDirectory: "./", project: "nugettest/")
|
2024-11-09 23:27:42 -05:00
|
|
|
|
|
|
|
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: "./")
|
2024-11-09 22:16:12 -05:00
|
|
|
}
|
2024-10-25 21:09:17 -04:00
|
|
|
}
|
|
|
|
}
|
2024-10-30 23:34:45 -04:00
|
|
|
}
|