-
Improvement
-
Resolution: Unresolved
-
Critical
-
None
-
Platform: All, OS: All
It would greatly simplify clearcase configuration within Hudson if the clearcase
plugin would manage the view name itself and provide Hudson a workspace path
within the view itself.
View name management:
I can't think of a good reason that users should specify the name of the view
that Hudson will create. It would be better if Hudson used a convention for
creating the view name based on the build agent the job is running on, the name
of the job and some unique prefix (specified in global clearcase configuration
setup). This would prevent users from running into issues with the same named
view on different build agents. Also, users should never need to know the view
name in order to configure the rest of the job so why bother having them input
it at all?
Workspace root management:
This may require a change to core Hudson but I think it would be very helpful.
The clearcase plugin should by default make the workspace root the view
directory within the standard workspace. Additionally, it should accept a
relative path within that directory to make the "workspace" so that downstream
configuration can be relative to that directory. This would simplify and
standardize a lot of the non-clearcase configuration of jobs (such as always
including the path to the pom.xml file).
- depends on
-
JENKINS-3585 Allow SCMs to provide the location of the workspace
-
- Resolved
-
- is related to
-
JENKINS-7450 Create a symbolic link to dynamic view in workspace
-
- Open
-
I can not get a Maven job to work with ClearCase dynamic views, and I believe
this issue is part of the problem.
I am using the ClearCase plugin with freestyle jobs with no problem. I can not
get Maven jobs to work because I can not point Maven at the POM. When I start
the dynamic view from Hudson, the POM is located at
M:\my_view\VOB_A\foo\pom.xml. Maven is looking for the pom.xml in the workspace
directory, so I get the error "ERROR: No such file
C:\hudson_data\job1\my_view\pom.xml". If I try to specify the location of the
POM using the "Root POM" field, I get the error "ERROR: No such file
C:\hudson_data\job1\my_view\M:\my_view\VOB_A\foo\pom.xml"
Is there a way to do one of the following:
1. Specify the workspace for a maven2 job
2. Use a fully qualified path to the POM for a maven2 job
3. Have Hudson "cd" to a given directory before running mvn as part of a maven2 job
Thanks a lot.