jenkins-playground/Jenkinsfile
adam a3c7dc6238
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
take2
2024-11-10 00:49:57 -05:00

37 lines
882 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", source:"greyngitea", skipDuplicate:true)
}
}
}
post {
always {
cleanWs()
}
}
}