Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def call(fileName) {
- sh script: '''#!/bin/bash
- echo File ${fileName} passed
- if [ -e \'${fileName}\' ]; then
- echo "File: ${fileName} exists"
- else
- echo "File: ${fileName} does not exist"
- fi
- '''
- return true
- }
- # func("somefile)
- # generates "File somefile" followed by a bash error "passed command not found" followed by "File: somefile does not exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement