jenkins-playground/Jenkinsfile
adam dfe44cba51
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
dollar dollar bill y'all. cash rules everything around me. I want to break free.
2024-11-09 23:33:18 -05:00

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