Getting the environment name as a property

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting the environment name as a property

Ryan Feiock

I have a script that I am running that needs to perform different functions based on what environment I am deployment my app to.  I have 3 environments named QA, UAT, and PROD, and I select the Environment using the dropdown list that the workflow sets up for me automatically (not one of my own defined properties).  If I try to do this:

 

"C:\test\SomeApp.exe" _PROMOTE_INCIDENTS=1 _CREATE_PACKAGE=0 _PRODUCT=${property:ProductName} _VERSION_NUMBER=${property:VersionNumber} _ENVIRONMENT=${property:Environment}

 

the value ${property:Environment} does not resolve to anything.  I am guessing there is no property named Environment, so first off, is there a property name that will return the name of the environment I am running the workflow against?  Since this is embedded in a command line step, I think it has to be a property(something like “EnvironmentLookup.getCurrent().getName()” won’t work for this situation).

 

Second off, is there some way to get a list of all of the properties that are available?

 

Thanks,

Ryan

 

 


_______________________________________________
Anthill-pro mailing list
[hidden email]
http://lists.urbancode.com/mailman/listinfo/anthill-pro
Reply | Threaded
Open this post in threaded view
|

Re: Getting the environment name as a property

emerson cargnin
I think you are after this:
${bsh:ServerGroupLookup.getCurrent().getName()}


2009/1/22 Ryan Feiock <[hidden email]>:

> I have a script that I am running that needs to perform different functions
> based on what environment I am deployment my app to.  I have 3 environments
> named QA, UAT, and PROD, and I select the Environment using the dropdown
> list that the workflow sets up for me automatically (not one of my own
> defined properties).  If I try to do this:
>
>
>
> "C:\test\SomeApp.exe" _PROMOTE_INCIDENTS=1 _CREATE_PACKAGE=0
> _PRODUCT=${property:ProductName} _VERSION_NUMBER=${property:VersionNumber}
> _ENVIRONMENT=${property:Environment}
>
>
>
> the value ${property:Environment} does not resolve to anything.  I am
> guessing there is no property named Environment, so first off, is there a
> property name that will return the name of the environment I am running the
> workflow against?  Since this is embedded in a command line step, I think it
> has to be a property(something like
> "EnvironmentLookup.getCurrent().getName()" won't work for this situation).
>
>
>
> Second off, is there some way to get a list of all of the properties that
> are available?
>
>
>
> Thanks,
>
> Ryan
>
>
>
>
>
> _______________________________________________
> Anthill-pro mailing list
> [hidden email]
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
_______________________________________________
Anthill-pro mailing list
[hidden email]
http://lists.urbancode.com/mailman/listinfo/anthill-pro
Reply | Threaded
Open this post in threaded view
|

Getting the environment name as a property

Ryan Feiock
In reply to this post by Ryan Feiock
That is exactly what I am looking for.  Thanks!  Now for the other part
of my question, is there a way I can find this info without having to
post to the distro list?

Thanks,
Ryan


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
[hidden email]
Sent: Friday, January 23, 2009 12:10 PM
To: [hidden email]
Subject: Anthill-pro Digest, Vol 60, Issue 43

Send Anthill-pro mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.urbancode.com/mailman/listinfo/anthill-pro
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Anthill-pro digest..."


Today's Topics:

   1. Re: How to delete an agent? ([hidden email])
   2. Re: AnthillPro 3.6.0 Issues (Ryan Smith)
   3. Getting the environment name as a property (Ryan Feiock)
   4. Re: Getting the environment name as a property (emerson cargnin)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Jan 2009 09:49:32 -0800
From: [hidden email]
Subject: Re: [Anthill-pro] How to delete an agent?
To: [hidden email], "AnthillPro user and support list."
        <[hidden email]>
Message-ID:
       
<OFDD6BD894.FC7A4100-ON88257546.0061C71A-88257546.0061EA3E@travelunderwr
iters.com>
       
Content-Type: text/plain; charset="us-ascii"

I was able to delete the agent this morning, however i don't know why.

No the agent was not specifically tied to any workflow.

Thanks, issue is resolved.

Gurinder



From:
Ryan Smith <[hidden email]>
To:
"AnthillPro user and support list." <[hidden email]>
Date:
22/01/2009 09:46 AM
Subject:
Re: [Anthill-pro] How to delete an agent?



Do any workflows in that project reference that agent to use explicitly
to run a job?


Ryan Smith

[hidden email] wrote:
>
> In search tab i selected all build lifes for that project and had them

> deleted. I'm assuming when i selected ALL it includes inactive and
> archived lifes, if not where can i clean these out?
>
> Gurinder
>
>
> From:                  "Pacileo, Kenneth" <[hidden email]>
> To:            "AnthillPro user and support list."
> <[hidden email]>
> Date:                  22/01/2009 04:08 AM
> Subject:               RE: [Anthill-pro] How to delete an agent?
>
>
>
------------------------------------------------------------------------
>
>
>
> Did you delete all inactive and archived build lifes for that project
> that used that agent?
> --Ken
>
>
------------------------------------------------------------------------

> *From:* [hidden email]
> [mailto:[hidden email]] *On Behalf Of
> *[hidden email]*
> Sent:* Wednesday, January 21, 2009 7:13 PM*
> To:* AnthillPro user and support list.*
> Subject:* [Anthill-pro] How to delete an agent?
>
>
> How do we delete an agent? We have removed associations from all jobs
> however still get the following message when trying to delete an
> agent. We have also removed all build lifes, requests etc from this
> project. We have also changed job configuration to utilize a
> completely different agent.
>
> "Could not delete agent "Agent_JBDev": , it is in use by Project(s):
> Venture-EAR"
>
> Help.
> *Gurinder Randhawa*
> Applications Architect, Information Services *
>
> direct* 604 303 2125 *
> mobile* 604 307 0157 *
> toll free* 1 800 663 5389 *ext* 3098 *
> fax* 604 276 9409 *
>
> e-mail* [hidden email] *
> visit* _www.tu-group.com_ <http://www.tu-group.com/> *
>
> TU Group*
> 11th Floor, 6081 No. 3 Road
> Richmond, BC
> Canada V6Y 2B2
>
>
>
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity
> to which it is addressed. If the reader of this e-mail is not the
intended
> recipient or his or her authorized agent, the reader is hereby
notified
> that any dissemination, distribution or copying of this e-mail is
> prohibited. If you have received this e-mail in error, please notify
the
> sender by replying to this message and delete this e-mail immediately.
> _______________________________________________
> Anthill-pro mailing list
> [hidden email]
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> [hidden email]
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
_______________________________________________
Anthill-pro mailing list
[hidden email]
http://lists.urbancode.com/mailman/listinfo/anthill-pro


-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.urbancode.com/pipermail/anthill-pro/attachments/20090122/ff
707459/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 22 Jan 2009 13:10:09 -0500
From: Ryan Smith <[hidden email]>
Subject: Re: [Anthill-pro] AnthillPro 3.6.0 Issues
To: [hidden email]
Cc: "AnthillPro user and support list."
        <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

If you have already upgraded and its working, then you should be fine
and future releases will upgrade fine. We would like to stop anyone who
was about to upgrade to avoid problems and downtime.

Ryan

[hidden email] wrote:
>
>
> Ryan
>
> It seems our issues are resolved for now, reverting back will be a bit

> of work. I'm wondering if continue on this version can we still
> upgrade when you release next minor version?
>
>
> From: Ryan Smith <[hidden email]>
> To: [hidden email]
> Date: 22/01/2009 09:44 AM
> Subject: [Anthill-pro] AnthillPro 3.6.0 Issues
>
>
>
------------------------------------------------------------------------
>
>
>
> Due to some reported bugs in the upgrade to 3.6 we would like to ask
> that AnthillPro customers please refrain from upgrading to 3.6.0 at
this

> time. A new build will be published when all the identified upgrade
> issues are fixed. These only affect the upgrade, new installations of
> 3.6.0 should work normally.
>
>
> Thanks,
>
> The AnthillPro Team
>
>
> _______________________________________________
> Anthill-pro mailing list
> [hidden email]
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>


------------------------------

Message: 3
Date: Thu, 22 Jan 2009 16:31:18 -0500
From: "Ryan Feiock" <[hidden email]>
Subject: [Anthill-pro] Getting the environment name as a property
To: <[hidden email]>
Message-ID:
       
<[hidden email]>
Content-Type: text/plain; charset="us-ascii"

I have a script that I am running that needs to perform different
functions based on what environment I am deployment my app to.  I have 3
environments named QA, UAT, and PROD, and I select the Environment using
the dropdown list that the workflow sets up for me automatically (not
one of my own defined properties).  If I try to do this:

 

"C:\test\SomeApp.exe" _PROMOTE_INCIDENTS=1 _CREATE_PACKAGE=0
_PRODUCT=${property:ProductName}
_VERSION_NUMBER=${property:VersionNumber}
_ENVIRONMENT=${property:Environment}

 

the value ${property:Environment} does not resolve to anything.  I am
guessing there is no property named Environment, so first off, is there
a property name that will return the name of the environment I am
running the workflow against?  Since this is embedded in a command line
step, I think it has to be a property(something like
"EnvironmentLookup.getCurrent().getName()" won't work for this
situation).

 

Second off, is there some way to get a list of all of the properties
that are available?

 

Thanks,

Ryan

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.urbancode.com/pipermail/anthill-pro/attachments/20090122/33
697104/attachment-0001.htm

------------------------------

Message: 4
Date: Fri, 23 Jan 2009 09:33:04 +0000
From: emerson cargnin <[hidden email]>
Subject: Re: [Anthill-pro] Getting the environment name as a property
To: "AnthillPro user and support list."
        <[hidden email]>
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1

I think you are after this:
${bsh:ServerGroupLookup.getCurrent().getName()}


2009/1/22 Ryan Feiock <[hidden email]>:
> I have a script that I am running that needs to perform different
functions
> based on what environment I am deployment my app to.  I have 3
environments
> named QA, UAT, and PROD, and I select the Environment using the
dropdown
> list that the workflow sets up for me automatically (not one of my own
> defined properties).  If I try to do this:
>
>
>
> "C:\test\SomeApp.exe" _PROMOTE_INCIDENTS=1 _CREATE_PACKAGE=0
> _PRODUCT=${property:ProductName}
_VERSION_NUMBER=${property:VersionNumber}
> _ENVIRONMENT=${property:Environment}
>
>
>
> the value ${property:Environment} does not resolve to anything.  I am
> guessing there is no property named Environment, so first off, is
there a
> property name that will return the name of the environment I am
running the
> workflow against?  Since this is embedded in a command line step, I
think it
> has to be a property(something like
> "EnvironmentLookup.getCurrent().getName()" won't work for this
situation).
>
>
>
> Second off, is there some way to get a list of all of the properties
that

> are available?
>
>
>
> Thanks,
>
> Ryan
>
>
>
>
>
> _______________________________________________
> Anthill-pro mailing list
> [hidden email]
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>


------------------------------

_______________________________________________
Anthill-pro mailing list
[hidden email]
http://lists.urbancode.com/mailman/listinfo/anthill-pro


End of Anthill-pro Digest, Vol 60, Issue 43
*******************************************
_______________________________________________
Anthill-pro mailing list
[hidden email]
http://lists.urbancode.com/mailman/listinfo/anthill-pro