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

Jira trigger plugin - trigger same job multiple time when recofigure the job using job DSL plugin

XMLWordPrintable

      I am using the job DSL for configure my jobs.  I want to apply the Jira trigger plugin to implement the deployment flow that managed by Jira issue status.

      I found the same job get trigger multiple time and the number of duplication triggering is same as the number of time that I reconfigure (actually is recreate and reload) the job using job DSL plugin.  I went through the code here and found the removing trigger is detect for delete and rename jobs.  In my case, the job does not get delete but the job is recreate without delete.

       

      Refer the the test case here , Is it able to check the duplication of job name before adding into the trigger list?

       

       

      This is a log from my Jenkins after I run recreate and reload job configuration using job DSL for 5 times.

      ---------------------------------------------------------------------------------------------

      Jan 31, 2022 12:08:59 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish

      poc_my-service #11 completed: SUCCESS

      Jan 31, 2022 12:09:00 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish

      poc_my-service #12 completed: SUCCESS

      Jan 31, 2022 12:09:00 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish

      poc_my-service #13 completed: SUCCESS

      Jan 31, 2022 12:09:00 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish

      poc_my-service #14 completed: SUCCESS

      Jan 31, 2022 12:09:00 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish

      poc_my-service #15 completed: SUCCESS

            ceilfors Wisen Tanasa
            manoframa9 somchai kas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: