Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
1.6
-
None
-
None
-
Java 1.6
Maven 2.2.1
Clearcase UCM
Jenkins 1.4
maven-release-plugin 2.2.2
Description
My Jenkins job is configured to create a clearcase UCM view whenever started i.e. it is not updating a view created in previous runs.
The build tries then to release my maven project (maven-release-plugin)
First operation is to modify pom.xml. In clearcase you need to perform a "checkout" in order to modify a file. However, that fails because in UCM a view needs to have an "activity" set.
A workaround is to create an activity before with the corresponding cleartool command. However, I think this should be performed by the scm plugin when asked to perform the checkout.
My clearcase-settings.xml specifies <clearcaseType>UCM</clearcaseType>
[INFO] [release:prepare {execution: default-cli}] [INFO] viewName = 'AXIAZ-bnjwa029-maven' ; configSpec = 'load \Orbis_Reports' ; vobName = '\Orbis_Project_Vob' ; streamName = 'MavenDeploymentEvaluation' ; elementName = 'null' [INFO] Verifying that there are no local modifications... [INFO] ignoring changes on: pom.xml.next, release.properties, pom.xml.releaseBackup, pom.xml.backup, pom.xml.branch, pom.xml.tag [INFO] viewName = 'AXIAZ-bnjwa029-maven' ; configSpec = 'load \Orbis_Reports' ; vobName = '\Orbis_Project_Vob' ; streamName = 'MavenDeploymentEvaluation' ; elementName = 'null' [INFO] Checking dependencies and plugins for snapshots ... [INFO] viewName = 'AXIAZ-bnjwa029-maven' ; configSpec = 'load \Orbis_Reports' ; vobName = '\Orbis_Project_Vob' ; streamName = 'MavenDeploymentEvaluation' ; elementName = 'null' [INFO] Transforming 'test-reports'... [INFO] viewName = 'AXIAZ-bnjwa029-maven' ; configSpec = 'load \Orbis_Reports' ; vobName = '\Orbis_Project_Vob' ; streamName = 'MavenDeploymentEvaluation' ; elementName = 'null' [INFO] edit file: D:\Views\hudson_slave\workspace\TestMax\hudson_view_MavenDeploymentEvaluation\Orbis_Reports\pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to enable editing on the POM Provider message: The cleartool command failed. Command output: cleartool: Error: To operate on UCM branch, must be set to an activity and a UCM view.