I am using Active Choices Plugin to dinamically load parameters. I want to read last line of a $workspace file as a parameter. 

In this example, when selecting "pedro" username it should display linea 1" because is the last line of the document that is in "/var/lib/jenkins/workspace/Aa.test1.txt"

This is how the job is configured:

[![enter image description here](https://i.stack.imgur.com/UBhPD.png)](https://i.stack.imgur.com/UBhPD.png)

And this is when trying to build the job with parameters: 
[![enter image description here](https://i.stack.imgur.com/BdX8g.png)](https://i.stack.imgur.com/BdX8g.png)

If I execute it in Jenkins Script console it displays the output correctly...
[![enter image description here](https://i.stack.imgur.com/whhvD.jpg)](https://i.stack.imgur.com/whhvD.jpg)

Thank you.