Passing data between build steps in Jenkins

后端 未结 8 1669
臣服心动
臣服心动 2020-12-31 00:09

I\'d like to do something along the lines of:

This is overly simple and just demonstrates what I\'d like to do. Basically, I want to be able to store and access vari

8条回答
  •  借酒劲吻你
    2020-12-31 00:34

    None of:

    • String Parameter of a Parameterized Build
    • pre-build Inject environment variables to the build process
    • in-build step Inject environment variables

    works (as of v1.656). You are able to read each of them, of course, but new values that are assigned to them are not available in subsequent build steps.

    Hence, JediMasterCoder's answer and handling via file like Destroyica's are the only options so far.

提交回复
热议问题