Hi,

you could try the Jenkins Environment File Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Envfile+Plugin

Else you would have to run some string manipulation to get the value
into a file and execute it at each build step like you would assign an
environment variable.
In DOS it would be a content like: SET var_name=var_value.
You have to execute it at each build step which needs the value as the
variable is destroyed when the build step is done.

Take care
Jan

On 5 Apr., 09:04, Pan Luo <[email protected]> wrote:
> I have my version number stored in a file. I would like my jenkins job to
> read the version from that file and store it in a variable so that I can
> used it some publish task. Is there a way to do it? Thanks.

Reply via email to