bash is not real
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit

This commit is contained in:
adam 2024-11-09 23:46:10 -05:00
parent 77df24da72
commit be5cce5e7e

6
Jenkinsfile vendored
View File

@ -5,11 +5,11 @@ pipeline {
stage('nuget'){ stage('nuget'){
steps{ steps{
dotnetPack(outputDirectory: "./", project: "nugettest/") dotnetPack(outputDirectory: "./", project: "nugettest/")
bash """ sh """
echo "i really just want to know if the fucking \$BUILD_NUMBER works" echo "i really just want to know if the fucking \$BUILD_NUMBER works"
files=( ./*.nupkg ) filename=\$(ls ./*.nupkg | head -1)
fullfilename=\$(basename -- \${files[0]}) fullfilename=\$(basename -- \$filename)
noext=\${fullfilename%.*} noext=\${fullfilename%.*}
echo "mv fullfilename \$noext-\$BUILD_NUMBER.nupkg" echo "mv fullfilename \$noext-\$BUILD_NUMBER.nupkg"