adam
2f058d8584
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
24 lines
612 B
Groovy
24 lines
612 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('nuget'){
|
|
steps{
|
|
dotnetPack(outputDirectory: "./", project: "nugettest/")
|
|
sh """
|
|
filename=\$(ls ./*.nupkg | head -1)
|
|
fullfilename=\$(basename -- \$filename)
|
|
noext=\${fullfilename%.*}
|
|
|
|
mv \$fullfilename \$noext-\$BUILD_NUMBER.nupkg
|
|
|
|
files=null
|
|
fullfilename=null
|
|
noext=null
|
|
"""
|
|
dotnetNuGetPush(root: "./*.nupkg")
|
|
}
|
|
}
|
|
}
|
|
}
|