jenkins-playground/Jenkinsfile
2024-11-09 23:30:43 -05:00

24 lines
586 B
Groovy

pipeline {
agent any
stages {
stage('nuget'){
steps{
dotnetPack(outputDirectory: "./", project: "nugettest/")
sh """
files=( ./*.nupkg)
fullfilename=\$(basename -- \${files[0]})
noext=\${fullfilename%.*}
mv fullfilename $noext-$BUILD_NUMBER.nupkg
files=null
fullfilename=null
noext=null
"""
dotnetNuGetPush(root: "./")
}
}
}
}