jenkins-playground/Jenkinsfile
adam ad2fc13928
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
last shouldve worked tbh
2024-11-09 23:53:34 -05:00

32 lines
773 B
Groovy

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