title: Build failure while running shell command from Jenkins
body: <p>I am invoking shell script to build my source code via jenkins 'Invoke Shell' option. My command goes like:</p>
  
  <pre><code>export PATH=$PATH:/usr/bin/repo
  cd /home/administrator/administrator/repo_sync
  whoami
  source ./build/envsetup.sh 
  choosecombo release project_int_factory eng
  </code></pre>
  
  <p>Resulting to which i am getting below error. I have given full permission to folder. Source code location is /home/administrator/administrator/repo_sync. I have tried with <strong>sudo chmod +x administrator</strong> &amp; <strong>sudo chmod 777 administrator</strong> but nothing helps. plus whoami return <strong>jenkins</strong></p>
  
  <pre><code>Building in workspace /home/administrator/administrator/repo_sync
      [repo_sync] $ /bin/sh -xe /tmp/hudson1461193343405073934.sh
      + export PATH=/usr/lib/jvm/java-6-openjdk-amd64/bin:/usr/lib/jvm/java-6-openjdk-amd64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/var/lib/jenkins/lib:/usr/lib/jvm/java-6-openjdk-amd64/bin:/home/administrator/pawan/adt-bundle-linux-x86_64-20140702/sdk/tools:/home/administrator/pawan/adt-bundle-linux-x86_64-20140702/sdk/platform-tools:/usr/bin/repo
      + cd /home/administrator/administrator/repo_sync
      + whoami
      jenkins
      + source ./build/envsetup.sh
      /tmp/hudson1461193343405073934.sh: 5: /tmp/hudson1461193343405073934.sh: source: Permission denied
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE
  </code></pre>