title: Trying to run a test suite but Jenkins not pulling down the latest code
body: <p>I am running a test suite using Jenkins and I have configured a job to do that. I have a pipeline script that is doing all the steps, but it seems that with the latest release on LIVE by adding a new button on the LIVE, my tests run a version of the code that does not have that button and it seems that it's not pulling the latest code. What am I doing wrong in the script?</p>
  
  <p>I have tried in pulling down the latest code from Bitbucket, but with no success and building the branch by doing 'docker-compose build --build-arg BRANCH=${branch} apache'</p>
  
  <pre><code>node {
     stage('Pull latest Docker repo') { 
        git credentialsId: 'xyz',
            url: 'git@bitbucket.org:domain/myportal-docker.git'
     }
     stage('Install app') {
        sh 'docker-compose down'
        sh 'docker-compose build --no-cache mysql'
        if (params.buildapp == true){
          sh 'docker-compose build --build-arg BRANCH=${branch} apache'
        }
        sh 'docker-compose up -d'
     }
     stage('Set up Selenium') {
        try {
          sh 'docker rm selenium -f'
        }
        catch(exc) {
          echo 'No selenium container running'
        }
        sh 'docker pull selenium/standalone-chrome'
        sh 'docker run -d -p 4444:4444 --name=selenium --net=host -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-dubnium'
     }
     stage('Load tests') { 
        dir("../") {}
        git credentialsId: 'xyz',
            url: 'git@bitbucket.org:domain/my-tests.git'
     }
     stage('Run tests') {
        sh 'composer install'
        sh 'vendor/bin/codecept --debug run --steps tests/jenkins'
     }
  }
  </code></pre>
  
  <p>Tests are running fine, but somehow they don't run on the latest code, they run against the master branch but it does not have the latest code. 
  Also I have an On demand job that I want to try and mess around with it once have some info maybe from some of you with this.</p>