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

URLTrigger does not poll when URL starts with environment variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • urltrigger-plugin
    • None
    • 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

      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.
      

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

              Created:
              Updated:
              Resolved: