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

Option to tie Cleartool operations to the master node in case of distributed build

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • clearcase-plugin
    • None

      Plugin info tells that ClearCase must be installed both on master and slave nodes.

      Is it possible to add an option that will tie cleartool operation to master node? I have a case when SCM available only on master. Builds must run on remote hosts without ClearCase.

      I tried to use Matrix Tie Parent Plugin http://wiki.jenkins-ci.org/display/JENKINS/Matrix+Tie+Parent+Plugin.
      It attaches CC plugin polling operations to master. But CC plugin also tries to start dynamic view (used for polling on master) on the slave node, and thus fails build.

      [default] $ cleartool startview BS-View
      java.io.IOException: CreateProcess: cleartool startview BS-View error=2
      ...

      It would be nice to add some option that will tie polling to master and restrict cleartool operations on slaves.

          [JENKINS-7350] Option to tie Cleartool operations to the master node in case of distributed build

          I don't understand your problem. How do you expect slaves to access the files ?

          I would split the job in two : one freestyle job to poll using Clearcase for SCM, and a downstream matrix job with no scm and you handle the workspace copy in a build step.

          Vincent Latombe added a comment - I don't understand your problem. How do you expect slaves to access the files ? I would split the job in two : one freestyle job to poll using Clearcase for SCM, and a downstream matrix job with no scm and you handle the workspace copy in a build step.

          dbubovych added a comment -

          I can get files using Copy+To+Slave+Plugin. It would copy the content of the static view from workspace located on master to slave node.

          Or run on slave some batch script with cleartool commands over SSH to access clearcase.

          Looks like two separate projects is the only solution. One thing that confusing me is the doubled amount of projects and not obvious build system structure with intermediate projects for scm...

          dbubovych added a comment - I can get files using Copy+To+Slave+Plugin. It would copy the content of the static view from workspace located on master to slave node. Or run on slave some batch script with cleartool commands over SSH to access clearcase. Looks like two separate projects is the only solution. One thing that confusing me is the doubled amount of projects and not obvious build system structure with intermediate projects for scm...

          scott_c_agnew added a comment -

          If you split the total work into two separate projects, doesn't that mean the change set info shows up only on the triggering job, while any code analysis stuff you have going on would show up on the project actually doing the work? This seems less than ideal.

          In my case, I have a problem even though both master and slave have ClearCase, because the master is linux and the slaves are windows, and so the configuration needed to get polling to work is a little different on either side. Specifically, I'm using UCM ClearCase polling, and the polling is unable to resolve my stream name unless I include the vob name ( MY_Stream@vob:/vobs/projvob for linux, MY_Stream@\projvob for windows ).

          scott_c_agnew added a comment - If you split the total work into two separate projects, doesn't that mean the change set info shows up only on the triggering job, while any code analysis stuff you have going on would show up on the project actually doing the work? This seems less than ideal. In my case, I have a problem even though both master and slave have ClearCase, because the master is linux and the slaves are windows, and so the configuration needed to get polling to work is a little different on either side. Specifically, I'm using UCM ClearCase polling, and the polling is unable to resolve my stream name unless I include the vob name ( MY_Stream@vob:/vobs/projvob for linux, MY_Stream@\projvob for windows ).

            Unassigned Unassigned
            dbubovych dbubovych
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: