script.sh: line 1: ./gradlew: No such file or directory on Jenkins
问题 This is error message I got ./gradlew clean assembleRelease /Users/bhanukaisuru/.jenkins/workspace/OrelGo@tmp/durable-b74adbad/script.sh: line 1: ./gradlew: No such file or directoryPipeline Script Pipeline Script stage('Build Release APK') { sh "./gradlew clean assembleRelease" } 回答1: You do not need to specify the Jenkins workspace with the commands sh and bat if you want to execute a command on the root level of it. sh 'mkdir test' would create a folder in <jenkins_workspace>/test for