i have low hopes for this
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2730940432
commit
26e5bd010e
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -5,7 +5,20 @@ pipeline {
|
|||||||
stage('nuget'){
|
stage('nuget'){
|
||||||
steps{
|
steps{
|
||||||
dotnetPack(outputDirectory: "./", project: "nugettest/")
|
dotnetPack(outputDirectory: "./", project: "nugettest/")
|
||||||
dotnetNuGetPush()
|
|
||||||
|
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: "./")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user