Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62057

Webhook triggering job with no SCM

XMLWordPrintable

      Hello,

      I have pipeline like this but when i push something i can see
      Webhook triggering job with no SCM
      in jenkins logs any hint ?

       
      pipeline {
          
          agent { label '' }
          
          triggers {
              BitbucketWebhookTriggerImpl()
         }

          parameters {
              gitParameter branch: '',
              branchFilter: 'origin./(.)',
              defaultValue: 'master',
              description: 'Select branch name (default master)',
              listSize: '5',
              name: 'BRANCH',
              quickFilterEnabled: true,
              selectedValue: 'NONE',
              sortMode: 'DESCENDING_SMART',
              tagFilter: '*',
              type: 'PT_BRANCH_TAG',
              useRepository: ''
          }

          stages {
              stage ('SCM') {
                  steps {
                      checkout(
                          changelog: true,
                          poll: false,
                          scm: [$class: 'BitbucketSCM', branches: [[name: "*/${BRANCH{color:#569cd6}}"]],
                              credentialsId: ''
                              id: ''
                              mirrorName: ''
                              projectName: ''
                              repositoryName: ''
                              serverId: ''
                          ]
                      )
                  }
              }

              stage('Test') {
                  steps {
                      sh """
                        ls -la
                      """
                  }
              }
          }
          
          post {
              cleanup {
                cleanWs()
              }
          }
      {color:#d4d4d4}}

            Unassigned Unassigned
            nikaein sadegh nikaein
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: