title: private requirements installation in jenkins
body: <p>i have a testing stage in my pipeline which needs to install some private requirements from bitbucket. following is my pipeline code.</p>
  
  <pre><code>pipeline {
      agent any
      environment {
           APPLICATION = 'connect'
  
       }
           stage('clone repository') {
               steps {
                   echo "env.DOCKER_IMAGE_TAG"
                   checkout scm
               }
           }
           stage('Test') {
              steps {
                  script {
                      sh 'virtualenv env -p python3.5'
                      sh '. env/bin/activate'
                      sh "env/bin/pip install -r requirements/private.txt"
                      sh "env/bin/pip install -r requirements/${env.ENVIRONMENT}.txt"
                      sh 'env/bin/python3.5 manage.py test --pattern="test_*.py'
                  }
              }
           }
  }
  </code></pre>
  
  <p>i have pasted ssh private and public keys which is being used by bitbucket in <strong>/var/lib/jenkins/.ssh/</strong> and i have also configured <code>publish over SSH</code> in following way.</p>
  
  <p><a href="https://i.stack.imgur.com/iZdG8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iZdG8.png" alt="enter image description here"></a></p>
  
  <p>but upon running the job i am getting following error. 
  <a href="https://i.stack.imgur.com/2Ql5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Ql5e.png" alt="enter image description here"></a></p>
  
  <p>i think i am unable to setup ssh keys properly. Please correct me where i am doing wrong in setting up the keys.</p>