adam
18f8bf82d5
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
i guess if I had a very very large repo, I wouldn't want this as a given.
36 lines
901 B
Groovy
36 lines
901 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() }
|
|
}
|
|
}
|
|
}
|