I want to run sonar runner every night via a cronjob though nothing happens when I run this script:
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cd path_to_repo
git checkout master
echo "on master"
git pull
echo "pulled"
touch text.txt
sonar-runner
echo "finished scan"
When I run the command sonar-runner in the same folder it works fine.
Also I added a test command touch which also works. Only sonar-runner does not work.