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

URLTrigger deletes schedule from config, then does not trigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • urltrigger-plugin
    • None

      URLTrigger will not trigger when the cron-like 'spec' element is empty.
      However, on saving the Jenkins job, it will delete the contents of this tag, so triggering never happens.

      Working config:
      ---------------
      <org.jenkinsci.plugins.urltrigger.URLTrigger>
      <spec>* * * * *</spec>
      <entries>
      <org.jenkinsci.plugins.urltrigger.URLTriggerEntry>
      <url>http://jenkins-dev.fortes.local:8080/job/Build%205-5-4/lastSuccessfulBuild/buildNumber</url>
      <proxyActivated>false</proxyActivated>
      <checkStatus>false</checkStatus>
      <statusCode>200</statusCode>
      <checkETag>false</checkETag>
      <checkLastModificationDate>true</checkLastModificationDate>
      <inspectingContent>true</inspectingContent>
      <contentTypes>
      <org.jenkinsci.plugins.urltrigger.content.SimpleContentType/>
      </contentTypes>
      </org.jenkinsci.plugins.urltrigger.URLTriggerEntry>
      </entries>
      <labelRestriction>false</labelRestriction>
      </org.jenkinsci.plugins.urltrigger.URLTrigger>

      Non-working (after modifying the job <spec> is cleared):
      --------------------------------------

      <org.jenkinsci.plugins.urltrigger.URLTrigger>
      <spec></spec>
      <entries>
      <org.jenkinsci.plugins.urltrigger.URLTriggerEntry>
      <url>http://jenkins-dev.fortes.local:8080/job/Build%205-5-4/lastSuccessfulBuild/buildNumber</url>
      <proxyActivated>false</proxyActivated>
      <checkStatus>false</checkStatus>
      <statusCode>200</statusCode>
      <checkETag>false</checkETag>
      <checkLastModificationDate>true</checkLastModificationDate>
      <inspectingContent>true</inspectingContent>
      <contentTypes>
      <org.jenkinsci.plugins.urltrigger.content.SimpleContentType/>
      </contentTypes>
      </org.jenkinsci.plugins.urltrigger.URLTriggerEntry>
      </entries>
      <labelRestriction>false</labelRestriction>
      </org.jenkinsci.plugins.urltrigger.URLTrigger>

      Jenkins 1.474 on Ubuntu 12.04
      URLTrigger 0.23

            gbois Gregory Boissinot
            michiel_fortes Michiel Koster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: