我尝试在jenkins作业的步骤中执行shell脚本,但是显示以下错误。
Building in workspace /var/lib/jenkins/workspace/bosomito
[bosomito] $ /bin/sh -xe /var/tmp/jenkins6770915355248948109.sh
+ pwd
/var/lib/jenkins/workspace/bosomito
+ grails -version
/var/tmp/jenkins6770915355248948109.sh: 3: /var/tmp/jenkins6770915355248948109.sh: grails: not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
如何在jenkins ci的shell步骤中执行grails命令?