I met a problem with jenkins novadays which I barely figure out what the problem is. It was very strange and I very encounter a term named Shebang which is mostly at the first line of a script which can be runnable on shell. You will get what I mean via that example;
#!/usr/bin/python # this is the shebang
print 'Hello world'
The problem about shebang is, there is a character length limit. If you exceed the limit, the script can't be run. This limit was 128 characters for my Ubuntu16.04
machine, but I saw some other limits like 64 etc. So this limit may be different for your machines.