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

Trigger not removed when deleting a job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • jira-trigger-plugin
    • None
    • Jenkins ver. 2.198
      Jira Trigger Plugin 1.0

      When deleting a job with Jira trigger enable (e.g. checked the "Build when an issue is updated in JIRA" option), the trigger appear not removed.

      Steps to re-produce:

      • In Jenkins's system log, create a logger with "com.ceilfors.jenkins.plugins.jiratrigger" to trace

      Normal case

      • Create a job, enable Jira trigger option and save. from the logger's log it show "Added [xxx/xxxx]:[JiraChangelogTrigger] to triggers list"
      • Edit the job, disable Jira trigger option and save, from the logger's log, it show "Removed [xxx/xxxx]:[JiraChangelogTrigger] from triggers list"

      Potential Issue case

      • Create a job, enable Jira trigger option and save. from the logger's log it show "Added [xxx/xxxx]:[JiraChangelogTrigger] to triggers list"
      • Delete the job, in the logger's log, NO "Removed [xxx/xxxx]:[JiraChangelogTrigger] from triggers list" appear. <-- trigger remain active?

       

      Error use case:

      • Create a job, enable Jira trigger option, fill in an invalid value for jql filter, save the job
      • Delete the job.
      • Update the Jira issue to trigger the webhook to Jenkins. In Jenkins logs, it show error thrown due to validate Jql failure with the invalid value entered in the deleted job
      • Hot restarting the jenkins does not resolve the issue, i tried uninstalled the Jira trigger plugin and re-installed to made the faulty trigger removed.

       

            ceilfors Wisen Tanasa
            mkwong04 minkeat wong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: