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

URLTrigger does not poll when URL starts with environment variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: urltrigger-plugin
    • Labels:
      None
    • Environment:
      Red Hat Enterprise Linux Server release 5.3 (Tikanga)
      java version "1.6.0_11"
      Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
      Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
      Jenkins ver. 1.509.1
    • Similar Issues:

      Description

      If I define an environment variable NEXUS_BASE_URL=http://l1-ibrprdmvn01.nl.rsg under Jenkins global properties and use it in the following url to poll:

      $NEXUS_BASE_URL/service/local/lucene/search?repositoryId=releases&g=nl.ibridge.jenkins-playground&a=shared-library

      no polling happens. See the following log:

      Polling started on May 15, 2013 2:51:04 PM
      Polling for the job playground_-_schommel_-_schommel-2-release_-_update_shared_library_versie
      Looking nodes where the poll can be run.
      Looking for a node to the restricted label master.
      Restrict on master label. Polling on master.
      
      Polling on master.
      
      Polling complete. Took 1 ms.
      No changes.
      

      The following workaround works. Define an environment variable NEXUS_HOST=l1-ibrprdmvn01.nl.rsg and use it in the url:

      http://$NEXUS_HOST/service/local/lucene/search?repositoryId=releases&g=nl.ibridge.jenkins-playground&a=shared-library

      See the log:

      Polling started on May 15, 2013 2:57:04 PM
      Polling for the job playground_-_schommel_-_schommel-2-release_-_update_shared_library_versie
      Looking nodes where the poll can be run.
      Looking for a node to the restricted label master.
      Restrict on master label. Polling on master.
      
      Polling on master.
      Invoking the url: 
       http://l1-ibrprdmvn01.nl.rsg/service/local/lucene/search?repositoryId=releases&g=nl.ibridge.jenkins-playground&a=shared-library
      Inspecting the content
      
      Polling complete. Took 92 ms.
      No changes.
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerEntry.java
          src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerResolvedEntry.java
          http://jenkins-ci.org/commit/urltrigger-plugin/3b58375adc94fb288f3697bfc85f86aab06d08b3
          Log:
          Fix JENKINS-17961

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerEntry.java src/main/java/org/jenkinsci/plugins/urltrigger/URLTriggerResolvedEntry.java http://jenkins-ci.org/commit/urltrigger-plugin/3b58375adc94fb288f3697bfc85f86aab06d08b3 Log: Fix JENKINS-17961

            People

            Assignee:
            gbois Gregory Boissinot
            Reporter:
            wgreven Wilco Greven
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: