RTC Plugin - (light) checkout workspace?

35 views
Skip to first unread message

Torsten Reinhard

unread,
Nov 8, 2017, 4:54:01 AM11/8/17
to Jenkins Users
Hi,

in one project we are using the https://wiki.jenkins.io/display/JENKINS/Team+Concert+Plugin for SCM

We have a large Stream that includes nearly all components, the components contain the Maven modules.
To get only the components and Maven modules I need for my build, I decided to create special RTC workspaces,
where only some of all components are added.

Example:Jenkins-Sandbox_MyLargeStream-maven_builder contains only the "maven_builder" component, containing only one Maven module.

My pipeline scripts now looks like:
node() {
    stage
('Checkout') {
      checkout
([$class: 'RTCScm',
                avoidUsingToolkit
: false,
                buildTool
: 'RTC build toolkit',
                buildType
: [buildWorkspace: 'Jenkins-Sandbox_MyLargeStream-maven_builder',
                            customizedSnapshotName
: '',
                            loadDirectory
: '',
                            value
: 'buildWorkspace'],
                credentialsId
: 'buildmgr',
                overrideGlobal
: false,
                serverURI
: 'https://myserver:9043/ccm/',
                timeout
: 480])  
   
}
}

After running that pipeline, I got a workspace containing ALL modules of the stream - and a changeset containg all changes of the stream!
The module I configured in that workspace seems to be ignored.

Is there a way to load only parts of a Stream like it should be possible using workspaces?

thanx for any hints,

Torsten



Reply all
Reply to author
Forward
0 new messages