[
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 <clearcaseType>UCM</clearcaseType>
{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 <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.
> 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
> Maven 2.2.1
> Clearcase UCM
> Jenkins 1.4
> maven-release-plugin 2.2.2
> Reporter: Max Schaefer
>
> 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>
> {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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira