Re: Praqma ClearCase UCM plugin: is it possible to know the viewroot directory when configuring a buildjob ?

2012-10-18 Thread Lars Kruse
Hi Marc

Like Jes describes you can locate the view-root using *%workspace%/view* or 
you can simply use *%**CC_VIEWPATH%*
It in the documentation for the 
pluginunder 
the header "Build Variables":
*Build variables*

The ClearCase UCM plugin introduces several build variables:

   - *CC_BASELINE*  the baseline being build
   - *CC_VIEWTAG* the view tag
   - *CC_VIEWPATH* the path of the view (the same as %WORKSPACE%\view)

Cheers

Lars Kruse
*
*

On Wednesday, 17 October 2012 15:31:23 UTC+2, marcdb wrote:
>
> Hello,
>
> I am trying to setup Jenkins with the ClearCase UCM plugin from Praqma.
>
> We are currently using Ant+Ivy as buildsystem.
> All our buildtools (JDK, Ivy, Ant etc...) and buildfiles (build.xml, 
> ivy.xml) are under version control, and are thus included in the ClearCase 
> view.
> The ant executable and build.xml file are always stored in the same 
> location relative to the view-root directory.
>
> When configuring a build job on the Jenkins console, I would like to call 
> ant with such a build.xml file stored in ClearCase.
> To do this, I need however the viewroot directory. One solution would be 
> that we could set the name of the viewroot directory when configuring the 
> buildjob. I have seen that this is an enhancement request for the plugin, 
> so I can't use this option at the moment.
>
> Another solution would be that the name of the viewroot is available by 
> means of a parameter that could be used when configuring the buildjob.
> Does anybody knows if this is possible ? Or are there other alternatives ?
>
> Thanks,
> Marc
>
>

Re: Praqma ClearCase UCM plugin: is it possible to know the viewroot directory when configuring a buildjob ?

2012-10-18 Thread jes Struck
Hey,

Christian the maintainer of the plugin is on vacation for the moment but i
will try to help you.

Please correct my if I'm wrong but the problem you are trying to solve is
finding the fully quallified path to the viewroot?

if you are using a standard setup and have not change the 'Custom
workspace' setting on the job config site you should be able
to get the path with %workspace%view
wher the %workspace% will be an environment variable set by jenkins
pointing to the directory the job are working in(I must admit that i can't
remember if is includes trailing \). and view being the folder ccucm is
creating the view in.

This path(%workspace%view) should be the variable you are looking for.

If this is not what you are looking for please elaborate and hopefully and
can help you futher

/Jes


 *Jes Struck*
Consultant
Praqma A/S

Tel:+45 22 71 82 46

Mail: j...@praqma.net

web: www.praqma.net







On 17 October 2012 15:31, marcdb  wrote:

> Hello,
>
> I am trying to setup Jenkins with the ClearCase UCM plugin from Praqma.
>
> We are currently using Ant+Ivy as buildsystem.
> All our buildtools (JDK, Ivy, Ant etc...) and buildfiles (build.xml,
> ivy.xml) are under version control, and are thus included in the ClearCase
> view.
> The ant executable and build.xml file are always stored in the same
> location relative to the view-root directory.
>
> When configuring a build job on the Jenkins console, I would like to call
> ant with such a build.xml file stored in ClearCase.
> To do this, I need however the viewroot directory. One solution would be
> that we could set the name of the viewroot directory when configuring the
> buildjob. I have seen that this is an enhancement request for the plugin,
> so I can't use this option at the moment.
>
> Another solution would be that the name of the viewroot is available by
> means of a parameter that could be used when configuring the buildjob.
> Does anybody knows if this is possible ? Or are there other alternatives ?
>
> Thanks,
> Marc
>
>


Praqma ClearCase UCM plugin: is it possible to know the viewroot directory when configuring a buildjob ?

2012-10-17 Thread marcdb
Hello,

I am trying to setup Jenkins with the ClearCase UCM plugin from Praqma.

We are currently using Ant+Ivy as buildsystem.
All our buildtools (JDK, Ivy, Ant etc...) and buildfiles (build.xml, 
ivy.xml) are under version control, and are thus included in the ClearCase 
view.
The ant executable and build.xml file are always stored in the same 
location relative to the view-root directory.

When configuring a build job on the Jenkins console, I would like to call 
ant with such a build.xml file stored in ClearCase.
To do this, I need however the viewroot directory. One solution would be 
that we could set the name of the viewroot directory when configuring the 
buildjob. I have seen that this is an enhancement request for the plugin, 
so I can't use this option at the moment.

Another solution would be that the name of the viewroot is available by 
means of a parameter that could be used when configuring the buildjob.
Does anybody knows if this is possible ? Or are there other alternatives ?

Thanks,
Marc