jenkins-playground/Jenkinsfile
adam afb1cf5072
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
i think "script copy.sh" is in fact the script that I've a block of
2024-11-09 23:36:40 -05:00

25 lines
635 B
Groovy

pipeline {
agent any
stages {
stage('nuget'){
steps{
dotnetPack(outputDirectory: "./", project: "nugettest/")
sh """
files=( ./*.nupkg)
echo "\${files[0]}"
fullfilename=\$(basename -- \${files[0]})
noext=\${fullfilename%.*}
echo "mv fullfilename \$noext-\$BUILD_NUMBER.nupkg"
files=null
fullfilename=null
noext=null
"""
dotnetNuGetPush(root: "./")
}
}
}
}