我在Jenkins工作中添加了这一步
执行Shell
FILE=copy_S3.rb
cat > "$FILE" << EOF
#!/usr/bin/env ruby
libPath = ENV["WORKSPACE"]+"/../lib/"
puts libPath
$LOAD_PATH.unshift( libPath )
EOF
ruby ./copy_S3.rb
我收到错误
./copy_S3.rb:5:in `<main>': undefined method `unshift'