title: Webhook| Gitlab | jenkins pipeline |Declarative syntax
body: <p>I'm trying to integrate Webhook with gitlab and jenkins. I have done it via upstream downstream jobs using the URL. 
  While trying to rece=reate the same via declarative pipeline, I'm in a stanstill</p>
  
  <pre><code> pipeline {
    agent any
    stages {
      stage('fetchcodeFromGit') {
        steps {
          timeout(time: 30) {
            git(url: 'http:&lt;&lt;&gt;&gt;/JenkinsPipeline.git', branch: 'master', credentialsId: 'QualityAssurance', poll: true)
          }
  
        }
      }
  </code></pre>
  
  <p>Can anyone help with documents or any sample snippets? </p>