jenkins-playground/Jenkinsfile
adam 2f058d8584
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
ok no this one though
2024-11-09 23:49:29 -05:00

24 lines
612 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")
}
}
}
}