Scan by webhook Job DSL not working

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hi Team,

       

      Job-DSL traits configuration is needed for "scan by webhook" trigger in jenkins. We are using bitbucket here.
      Currently we have periodic scan and we want to use the "scan by webhook" trigger function. Below is the periodic trigger syntax:

      it / 'triggers' << 'com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger'{
      spec ' *'
      interval "60000"
      }

      And below is the syntax we used for the scan by webhook function but it does not work.

      traits << 'com.igalg.jenkins.plugins.mswt.trigger.ComputedFolderWebHookTrigger' {
       token("TEST_HOOK")
       }

      Is it a plugin compatibility issue or something wrong with the syntax?
      Thanks in advance!

            Assignee:
            Jamie Tanna
            Reporter:
            Akilesh DS
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: