[Trigger Pipeline] 400 - BadRequest

Forge Component
(2)
Published on 7 Oct by Rui Mendes
2 votes
Published on 7 Oct by Rui Mendes

Hi,

I am receiving a "400 - BadRequest" when I try to trigger a pipeline, and the logs I am getting in the Service Center isn't really helpful. Do you have any advice on how should I probably troubleshoot this?

Please advise. Thanks.


Regards,
Eugene

Hi Eugene,

A couple of questions to start the troubleshooting process:

  • Are you using Jenkins or Azure DevOps as your pipeline server? 
  • Are you using Build or Release pipelines (Azure DevOps only)?
  • Do you have an API Token that you can use in the Pipeline Server Credentials field? 

Best regards,

Rui Mendes

Hi Rui,

I am using Azure DevOps.

I have both Build and Release pipelines, and I have tested both. Both are returning the 400 Bad Request.

Yes, I am using an API Token.

I am following this article to do the whole setup.
https://github.com/OutSystems/outsystems-pipeline/wiki/Building-an-OutSystems-pipeline-with-Azure-DevOps


Regards,
Eugene


Hi Eugene,

We were able to replicate the same issue (400 Bad Request) when having the 'Project' name wrongly configured in the 'Pipeline Server Address' field. 

For Build pipelines the field format should be  https://dev.azure.com/{organization}/{project}, whereas for Release pipelines the format should be https://vsrm.dev.azure.com/{organization}/{project}.

Best regards,

Rui Mendes

Hi Rui,

I have verified that my "Pipeline Server Address" fields are properly named. Any other possible causes you can think of?

Thanks.


Regards,
Eugene

Hi Eugene,


In the next Trigger Pipeline version we are improving the log information for better troubleshooting.

We tried to replicate the issue by changing several configurations but we got the "400 - BadRequest" only when the Pipeline Server Address field was wrongly configured on the {project} property.


Meanwhile, for troubleshooting purposes we advise to test the call of the Azure DevOps Services REST API outside the Trigger Pipeline to guarantee that the configurations are correct.


Best regards,

Duarte Castaño