title: Jenkins Git Changelog on First Build
body: <p>I have a jenkins pipeline that triggers downstream jobs based on changes to specific folders. The downstream jobs are not being triggered for first time builds. The Jenkins logs shows: <code>Warning, empty changelog. Probably because this is the first build.</code>. How can i make the pipeline to trigger downstream jobs on first build? Here is the jenkinsfile</p>
  
  <pre><code>    agent { label 'slave-02'}
      options {
          skipDefaultCheckout true }
  
          stages {
              stage('checkoutscm') {
                  steps {
                  checkout([$class: 'GitSCM', branches: [[name: "${BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'xxxxx', url: 'https://git.xxxx.com/xxx/xxx.git']]])
                  }
  
              }
              stage('DeployRelease') {
                  when {
                      anyOf {
                          changeset "scripts/**"
                          changeset "config/**"
                          }
                      }
  
                      steps {
                          build job: "/DEVOPS_DUMMY/${BRANCH_NAME}", wait: false
          }
      }
  
           stage('DDLDelivery') {
                  when {
                          changeset "DDL/**"
                      }
  
                      steps {
                          build job: "/PROD/${BRANCH_NAME}", wait: false
              }
          }
      }
  } ```
  </code></pre>