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