script.sh: line 1: ./gradlew: No such file or directory on Jenkins

前端 未结 2 1526
半阙折子戏
半阙折子戏 2021-01-16 16:16

This is error message I got

./gradlew clean assembleRelease /Users/bhanukaisuru/.jenkins/workspace/OrelGo@tmp/durable-b74adbad/script.sh: line 1:

2条回答
  •  北海茫月
    2021-01-16 16:43

    You should CD to where your gradlew binary folder is, or using full path of the gradlew. because the command you run is executed in epemeral directory, not in the jenkins home. you can use ${JENKINS_HOME} to use the path of your jenkins home

提交回复
热议问题