From be5cce5e7eae40d58ed3ed654072bf26056fac9b Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 9 Nov 2024 23:46:10 -0500 Subject: [PATCH] bash is not real --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d7ae90c..c14836e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,11 +5,11 @@ pipeline { stage('nuget'){ steps{ dotnetPack(outputDirectory: "./", project: "nugettest/") - bash """ + sh """ echo "i really just want to know if the fucking \$BUILD_NUMBER works" - files=( ./*.nupkg ) - fullfilename=\$(basename -- \${files[0]}) + filename=\$(ls ./*.nupkg | head -1) + fullfilename=\$(basename -- \$filename) noext=\${fullfilename%.*} echo "mv fullfilename \$noext-\$BUILD_NUMBER.nupkg"