Issue with running csh commands in the jenkins "Execute Shell" commands

153 views
Skip to first unread message

sivarajesh jarugula

unread,
Jun 23, 2016, 4:36:21 PM6/23/16
to Jenkins Users
I am running a Jenkins parameterized build along with having csh commands in the "Exeute Shwll" WIndow/
my shell commands:
#!/bin/csh
echo "hu ha"


I am getting the following error:
[workspace] $ /bin/csh -xe /tmp/hudson3705530096260628757.sh alias: No match. Build step 'Execute shell' marked build as failure Finished: FAILURE

Can somebody tells me why this is failing?

Martin d'Anjou

unread,
Jun 24, 2016, 10:18:52 PM6/24/16
to Jenkins Users
Check the contents of the .cshrc file, there is probably something setting or loading aliases there. You should also look into using something more modern like bash.

sivarajesh jarugula

unread,
Jun 25, 2016, 11:30:16 AM6/25/16
to jenkins...@googlegroups.com
Thanks Martin for your help.
I do not have any aliases. 
I got away with the error by adding -f switch as follows:
#!/bin/csh -f



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/ZfoWEiaEiMU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5a3baadf-3de1-4119-99c9-4520e0753c35%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages