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!

          [JENKINS-63304] Scan by webhook Job DSL not working

          Akilesh DS created issue -
          Akilesh DS made changes -
          Description Original: 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:
          {code:java}
          it / 'triggers' << 'com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger'{
          spec ' *'
          interval "60000"
          }{code}
          And below is the syntax we used for the *scan by webhook* function but it does not work.
          {code:java}
          traits << 'com.igalg.jenkins.plugins.mswt.trigger.ComputedFolderWebHookTrigger' {
           token("")
           }{code}

          Is it a plugin compatibility issue or something wrong with the syntax?
          Thanks in advance!
          New: 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:
          {code:java}
          it / 'triggers' << 'com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger'{
          spec ' *'
          interval "60000"
          }{code}
          And below is the syntax we used for the *scan by webhook* function but it does not work.
          {code:java}
          traits << 'com.igalg.jenkins.plugins.mswt.trigger.ComputedFolderWebHookTrigger' {
           token("TEST_HOOK")
           }{code}
          Is it a plugin compatibility issue or something wrong with the syntax?
           Thanks in advance!
          Jamie Tanna made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Jamie Tanna [ jamietanna ]

            jamietanna Jamie Tanna
            akileshds Akilesh DS
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: