jenkins-playground/Jenkinsfile
adam 222aa0c304
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
alright feeling good about this one kinda
2024-11-09 23:48:25 -05:00

24 lines
610 B
Groovy

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