jenkins-playground/Jenkinsfile
adam 79efdfcedf
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
why would you not
2024-11-10 00:39:03 -05:00

36 lines
893 B
Groovy

pipeline {
agent any
stages {
stage('env'){
cleanWs()
checkout scm
}
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", source:"greyngitea", skipDuplicate:true)
}
}
}
}