Thanks for your reply :-) As you said I modified it.
cd /bin rm sh ln -s bash sh But still error occurs. sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `/opt/RVCT41P7/RVCT/Programs/4.1/713/linux-pentium/ armlink --elf --map --info sizes,totals --list ... Execute Shell like below #!/bin/bash cd non_HLOS/dsps_proc ./build_target.sh d1lv -j24 On 3월1일, 오후2시21분, Sami Tikka <sjti...@gmail.com> wrote: > Not seeing anything else like the console leaves me no real clues but I can > offer some guesses: > > 1) Maybe /bin/sh on the build machine is not bash and the build script is > using some bash-only feature? > > 2) Shell scripts have a bad habit of continuing execution even if errors > happen. That is the reason Jenkins executes build steps using /bin/sh -xe > (unless the first line if build step contains a line that starts with #!) > > -- Sami > > "seonguk.baek" <baekseon...@gmail.com> kirjoitti 29.2.2012 kello 10.08: > > > > > > > > > Hello > > > We used Git system as a SCM tool. And jenkins is used for CI with > > Gerrit Trigerr plug in. > > > jenkins runs build operation when commit is uploaded to Gerrit code > > review system by developer. > > > There is error case with below job which is [ sh: Syntax error: "(" > > unexpected ] when build is running from jenkins > > > But console build is successed. I don't know why? > > > Jenkins System configure about shell is below. > > > Help me... > > > [Shell executable] /bin/bash > > > Below command is Execute shell > > > [Command] > > pwd > > repo forall -c git reset --hard [Tag name] > > rm -rf android/out/ > > repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/ > > $GERRIT_PATCHSET_NUMBER > > > [Command] > > cd non_HLOS/dsps_proc > > ./build_target.sh d1lv -j24 > > repo forall -c git reset --hard HEAD > > repo forall -c git clean -xdf > > > ./build_target.sh d1lsk -j24 > > repo forall -c git reset --hard HEAD > > repo forall -c git clean -xdf > > > ./build_target.sh l_dcm -j24