• Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major Major
    • accurev-plugin
    • None
    • Ubuntu 10.04.04 - Jenkins LTS

      There may be a way to configure this already that I'm overlooking somewhere, but if not, this would be a great feature.

      In the Jenkins global configuration, it's possible to add multiple servers (replicas) We have replicas that are geographically diverse across a corporate WAN. For example, we have Jenkins nodes/slaves at both site A and site B. Each site also has it's own AccuRev replica. So we want nodes at site A to use their local AccuRev replica and nodes at site B use their local replica.

      I see that it's possible to configure this on a per-job basis, but what we really need is a per node/slave basis. Otherwise, we have to maintain separate jobs for each site.

          [JENKINS-12954] Configure accurev server per Jenkins node

          Mike M added a comment -

          This has been a want for a long time. Here's a link to the request from 2 years ago in the Hudson ticket repository.

          http://issues.hudson-ci.org/browse/HUDSON-6027

          Mike M added a comment - This has been a want for a long time. Here's a link to the request from 2 years ago in the Hudson ticket repository. http://issues.hudson-ci.org/browse/HUDSON-6027

          pickgr added a comment -

          Unfortunately, the plugin does not recognize the Key/Value pair variable substitution available in the node configuration:

          15:14:58 [test_accurev_on_*_nodes] $ /usr/bin/accurev info -H ${ACCUREV_SERVER}:5050
          15:15:00 FATAL: Domain: *
          15:15:00 Server name: ${ACCUREV_SERVER}
          15:15:00 Port: 5050
          15:15:00 ACCUREV_BIN: /opt/accurev/bin
          15:15:00 Client time: 2012/03/02 15:14:58 PST (1330730098)
          15:15:00 h_errno: 1
          15:15:00 get host: Unknown host
          15:15:00 network error - Can't find host entry for ${ACCUREV_SERVER}
          15:15:00 Attempt to contact AccuRev server on ${ACCUREV_SERVER} port 5050 failed.
          15:15:00 Giving up.
          15:15:00 AccuRev Error: 1
          15:15:00
          15:15:00 FATAL: info command (/usr/bin/accurev info -H ${ACCUREV_SERVER}:5050) failed with exit code 1
          15:15:00 Not currently authenticated with Accurev server
          15:15:00 Authenticating with Accurev server...

          There is also a "tool locations" for the node configuration. Ultimately, I think this where this feature belongs. I see the git plugin uses this.

          pickgr added a comment - Unfortunately, the plugin does not recognize the Key/Value pair variable substitution available in the node configuration: 15:14:58 [test_accurev_on_*_nodes] $ /usr/bin/accurev info -H ${ACCUREV_SERVER}:5050 15:15:00 FATAL: Domain: * 15:15:00 Server name: ${ACCUREV_SERVER} 15:15:00 Port: 5050 15:15:00 ACCUREV_BIN: /opt/accurev/bin 15:15:00 Client time: 2012/03/02 15:14:58 PST (1330730098) 15:15:00 h_errno: 1 15:15:00 get host: Unknown host 15:15:00 network error - Can't find host entry for ${ACCUREV_SERVER} 15:15:00 Attempt to contact AccuRev server on ${ACCUREV_SERVER} port 5050 failed. 15:15:00 Giving up. 15:15:00 AccuRev Error: 1 15:15:00 15:15:00 FATAL: info command (/usr/bin/accurev info -H ${ACCUREV_SERVER}:5050) failed with exit code 1 15:15:00 Not currently authenticated with Accurev server 15:15:00 Authenticating with Accurev server... There is also a "tool locations" for the node configuration. Ultimately, I think this where this feature belongs. I see the git plugin uses this.

          pickgr added a comment -

          I just discovered that leaving the host field empty in the plugins global configuration is possible. This allows you to use the acclient.cnf configuration on the local node (no -H in the accurev commands) It might save some others some head scratching if this is mentioned on the wiki page for the plugin.

          pickgr added a comment - I just discovered that leaving the host field empty in the plugins global configuration is possible. This allows you to use the acclient.cnf configuration on the local node (no -H in the accurev commands) It might save some others some head scratching if this is mentioned on the wiki page for the plugin.

          Duplicate of JENKINS-6027 closing

          Joseph Petersen (old) added a comment - Duplicate of JENKINS-6027 closing

            jetersen Joseph Petersen
            pickgr1 pickgr
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: