📜  teamcity 设置环境变量命令行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:17.330000             🧑  作者: Mango

代码示例1
Build Step #1:
#!/bin/bash
echo "##teamcity[setParameter name='env.ddd' value='fff']"
echo "##teamcity[setParameter name='env.datetime' value='$(date)']"

The values of initialized parameters will be avaliable on the next build step:

Build Step #2:
#!/bin/bash
echo $ddd
echo $datetime