Environment variable retrieve from NAnt script is not recognize in Jenkins nant build step

Posted by user1670340 on Stack Overflow See other posts from Stack Overflow or by user1670340
Published on 2012-09-21T03:36:37Z Indexed on 2012/09/21 3:37 UTC
Read the original article Hit count: 626

Filed under:

In my nant script I retrieve my environment variable in this way:

but when I run it through jenkins using nant as build step I got an error like this.

Expression: ${environment::get-variable('MAIN_PROJECT_PATH')} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Environment variable "MAIN_PROJECT_PATH" does not exist.

Is there configuration for this? so that Jenkins will recognize environment variables access by my nant script?

Help is greatly appreciated. Thanks.

© Stack Overflow or respective owner

Related posts about jenkins