Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

teamcity set environment variable command line

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
Source by teamcity-support.jetbrains.com #
 
PREVIOUS NEXT
Tagged: #teamcity #set #environment #variable #command #line
ADD COMMENT
Topic
Name
6+2 =