[
https://jira.codehaus.org/browse/SCM-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte updated SCM-661:
---
Component/s: maven-scm-provider-clearcase
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 UCM
{noformat}
[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.
{noformat}
was:
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 UCM
[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.
> Initial checkout in clearcase ucm needs activity
> -
>
> Key: SCM-661
> URL: https://jira.codehaus.org/browse/SCM-661
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-clearcase
>Affects Versions: 1.6
> Environment: Java 1.6