[Anthill-pro] AHP 3.4.10 Setting properties at project level
Mathew Joseph
mjoseph at bravurasolutions.com
Wed Mar 19 13:37:07 CST 2008
Eric,
I was thinking of the shell extensions approach.. But when running from
current directory
we use
./script.sh for linux
and script.bat for windows
so its not just the extension but the way in which the script is
called..
i could then do it by having a property called scriptPrefix which has
"./" for linux and "" for windows..
it would then result in the the script being called as
${property:scriptPrefix}script${property:scriptExtension}
-----Original Message-----
From: Eric Minick <etm at urbancode.com>
To: mjoseph at bravurasolutions.com, AnthillPro user and support list.
<anthill-pro at lists.urbancode.com>
Subject: Re: [Anthill-pro] AHP 3.4.10 Setting properties at project
level
Date: Wed, 19 Mar 2008 13:14:25 -0600
Mathew,
As an alternative, you could add a variable to each of these agents
called "shell_extension". On unix machines it would resolve to .sh and
on windows, .bat.
Then you would just execute script.${shell_extension} .
Does that seem like a workable approach?
-- Eric
On 3/19/08, Mathew Joseph <mjoseph at bravurasolutions.com> wrote:
Hi There,
I want to be able to change the script that I call based on
the agent
OS. i.e. script.bat if its windows and script.sh if its linux.
The agent
has properties to distinguish what OS it is using.
I presume this would be a 3 step process.
Step 1: Define a property at the workflow level called say,
scriptName.
Step 2: Have a evaluate script step in my job that checks the
agent OS
and assigns this property as script.bat or script.sh
Step 3: The next step in the job (shell builder step) uses the
property
to run the script. Something like ${property:scriptName}
Is this how you would approach this problem?
Is it possible to modify a workflow/project level property from
within a
job?
--
Regards,
Mathew Joseph
Build & Release Engineer
Bravura Solutions
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
--
Regards,
Mathew Joseph
Build & Release Engineer
Bravura Solutions
More information about the Anthill-pro
mailing list