1

I am triggering a Teamcity build using the documentation at Triggering a Custom Build The GET request I am submitting is

http://teamcity:80/httpAuth/action.html?add2Queue=TestRestBuildTrigger&agentId=36&name=TestCheckBox&value=false

However the value of the param TestCheckBox is passed as true.

TestCheckBox is a checkbox parameter with default value set to false.

Mohammad Nadeem
  • 9,134
  • 14
  • 56
  • 82

1 Answers1

2

Checkbox works as follows:

  • if you set any value, then it is considered as checked
  • if you set no value &value=, then it is considered as unchecked

Also since TeamCity 8.1 the recommended way to trigger builds is via REST API.

Alina Mishina
  • 3,320
  • 2
  • 22
  • 31