Components still loaded when excluding components in jenkins pipeline using rtc checkout scm.
I am using jenkins RTC integration. I have an RTC build definition mapped to a jenkins job. I need to exclude certain components from being loaded. I have the following coded in a jenkins pipeline:
checkout([
$class: 'RTCScm',
buildTool: 'rtcBuildToolkit',
buildType: [
buildDefinition: 'my-personal-build',
value: 'buildDefinition',
loadPolicy: 'useComponentLoadConfig',
componentLoadConfig: 'excludeSomeComponents',
componentsToExclude: 'comp_a,comp_b'
],
acceptBeforeLoad: false,
clearLoadDirectory: true,
changelog: true,
credentialsId: 'mycreds',
overrideGlobal: true,
avoidUsingToolkit: false,
serverURI: 'https://my.jazz.repo.com',
timeout: 480
])
The result is that comp_a and comp_b are not excluded (i.e. still loaded). What am I doing wrong here? I used the instructions outlined here:
One answer
When a Jenkins job is associated with an RTC build definition then any Jazz source control related configurations like repository workspace, load directory, list of components to exclude, etc. are read from the RTC build definition and not the Jenkins job. List of components to exclude can be specified in the RTC build definition like mentioned in point#12 here - https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.build.doc%2Ftopics%2Ftcreatebuilddefinition.html