anbeek
14 years agoOccasional Contributor
How to get (current) project name?
Hi
In a groovy test step I need to get the project name.
Cant seem to get it though, tried with the below.
def test = context.expand( '${#Project#Name)' )
log.info(test) ---> Tue Mar 22 15:54:28 CET 2011:INFO:${#Project#Name)
Suspect that this is simple but I can't figure it out (tried a lot of variants on expansions).
Anyone who can point me in the rigth direction?
Regards
/A
In a groovy test step I need to get the project name.
Cant seem to get it though, tried with the below.
def test = context.expand( '${#Project#Name)' )
log.info(test) ---> Tue Mar 22 15:54:28 CET 2011:INFO:${#Project#Name)
Suspect that this is simple but I can't figure it out (tried a lot of variants on expansions).
Anyone who can point me in the rigth direction?
Regards
/A