the documentation states:
Build configuration steps: GET/DELETE http://teamcity:8111/httpAuth/app/rest/buildTypes/<buildTypeLocator>/steps/<step_id>
Create build configuration step: POST http://teamcity:8111/httpAuth/app/rest/buildTypes/<buildTypeLocator>/steps The XML posted is the same as retrieved by GET request to .../steps/<step_id>
but when I use the following as a POST:
with content-type application/xml and the following xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<step id="RUNNER_34" name="testing Deploy Branch Build" type="octopus.deploy.release">
<property name="octopus_deployto" value="%env.deploy_target%"/>
<property name="octopus_host" value="octopus.server.com"/>
<property name="octopus_project_name" value="%env.OCTOPUS_PROJECT%"/>
<property name="octopus_releasenumber" value="%env.BUILD_NUMBER%"/>
<property name="octopus_version" value="2.0+"/>
<property name="octopus_waitfordeployments" value="true"/>
<property name="teamcity.step.mode" value="default"/>
I get the following error message:
Error has occurred during request processing (405).
Not supported request. Please check URL, HTTP method and transfered data are correct. metadata: [Allow:[GET,DELETE,OPTIONS,HEAD,PUT],]
note that it says PUT and not POST. So following that advice I can change it to a PUT and I am greeted with the following message:
Error has occurred during request processing (Internal Server Error).
Error: java.lang.RuntimeException: java.lang.NullPointerException, caused by: java.lang.NullPointerException
Error occurred while processing this request.
I have tried taking the step name out of the url and or using an existing step to overwrite instead of create. Nothing seems to be working. What am I doing incorrectly?