title: Jenkins scripted pipeline to trigger for every new commit
body: <p>Below is the groovy syntax, that checkout <code>develop</code> branch on <code>Build now</code>(manual checkout).</p>
  
  <pre><code>node('node_1'){
      stage('dev-staging'){
  
          sh "cd ${WORKSPACE}"
  
          dir('xyz') {
              git branch: 'develop', 
                  credentialsId: '71111-222-333-444-43333333a40',
                  url: 'ssh://git@10.xx.xx.xx:2222/abc_project/xyz.git'
          }
          dir('def') {
              git branch: 'develop', 
                  credentialsId: '71111-222-333-444-43333333a40',
                  url: 'ssh://git@10.xx.xx.xx:2222/abc_project/def.git'
          }
      }
  }
  </code></pre>
  
  <hr>
  
  <p>How to trigger checkout from <code>develop</code> branch, on every new commit on <code>develop</code> branch? automatic trigger but not manual trigger...</p>