TeamCity - using setParameter to pass information between build steps

前端 未结 6 1813
清歌不尽
清歌不尽 2020-12-23 22:04

I must be doing something differently than what was asked and answered here because the solution does not appear to be working for me: TeamCity, passing an id generated in o

6条回答
  •  星月不相逢
    2020-12-23 22:35

    It has to be printed to STDOUT, I use cat with heredoc to avoid having to escape single quotes in the event of using variables to dynamically set config parameters. What is heredoc?

    MYVARNAME=MYVALUE
    cat <

    Result:

    ##teamcity[setParameter name='myConfParameter' value='MYVALUE']
    

    Documentation

提交回复
热议问题