jenkinsjenkins-pluginsclearcase-ucm

VCS settings for Clear Case UCM Plugin for Jenkins


I am using Jenkins and its ClearCase UCM plugin, but am unable to make it work (make ClearCase checkout the proper view in the Jenkins job workspace).

I have been trying to set up source code to ClearCase, but it is asking too many inputs and I am not aware what to fill.
It is asking for the following fields:

Viewtag : Jenkins_${USER_NAME}_${NODE_NAME}_${JOB_NAME}${DASH_WORKSPACE_NUMBER}
View Path: 
Stream Selector.

Can anybody help with this?

fields

What should be the correct values for ClearCase to work properly, that is get the code in the Jenkins job workspace?


Solution

  • The JENKINS ClearCase UCM Plugin, like any other VCS (Version Control System) Jenkins plugin, needs to access the sources in order for Jenkins to checkout said sources in a Jenkins workspace.

    For that:

    The plugin will automatically create a snapshot view in a folder named 'view' in the root of the job's workspace.
    Snapshot views can - as opposed to dynamic views - be located anywhere, which we exploit to place it inside the job's workspace.
    Dynamic Views can only reside on the location where your mvfs is located and that is not inside the workspace.

    It should not ask for the field you mention.

    Instead:

    The ClearCase UCM plugin introduces several build variables:

    You can setup a job using that plugin by making it monitor changes in your ClearCase UCM VOBs by polling for new baselines on a given stream.

    From the comments, the default value for those field is fine, and Jenkins will create a dynamic view accessing the UCM components if the stream mentioned in the settings of that plugin.

    https://wiki.jenkins.io/download/attachments/58001105/ccucm_config.png?version=1&modificationDate=1439193524000&api=v2