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"