0

I know I can define a secret value like this in kotlin DSL on teamcity:

params {
  password(
    "env.MY_SECRET_VALUE", 
    "credentialsJSON:faf2d7c8-3565-452a-8cfe-a7a55a4f0f4c", 
    display = ParameterDisplay.HIDDEN
  )
}

How do I achieve the same with build script interaction? I mean a command of the kind

##teamcity[setParameter name='env.MY_SECRET_VALUE' value='1234']

Is it possible at all? I was unable to find this use-case in this documentation, which is the most complete I've found until now on the topic.

1 Answer 1

0

The way I understand it, making this happen with build script interaction makes no sense, because I'd need to write a command like

echo "##teamcity[setParameter password='env.MY_SECRET_VALUE' value='1234']"

assuming such a command existed. That means TeamCity will display that line in the logs with the value not hidden, making it therefore pointless.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.