adam
26e5bd010e
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
26 lines
635 B
Groovy
26 lines
635 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('nuget'){
|
|
steps{
|
|
dotnetPack(outputDirectory: "./", project: "nugettest/")
|
|
|
|
def BUILD_NUMBER = "$BUILD_NUMBER"
|
|
sh """
|
|
files=( ./*.nupkg)
|
|
fullfilename=$(basename -- ${files[0]})
|
|
noext=${fullfilename%.*}
|
|
|
|
mv fullfilename $noext-$BUILD_NUMBER.nupkg
|
|
|
|
files=null
|
|
fullfilename=null
|
|
noext=null
|
|
"""
|
|
dotnetNuGetPush(root: "./")
|
|
}
|
|
}
|
|
}
|
|
}
|