OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
170 stars 500 forks source link

Issue with Run Azure DevOps Build Pipeline #1481

Closed dbloch3643 closed 7 months ago

dbloch3643 commented 8 months ago

Step template

Run Azure DevOps Build Pipeline

Step version

No response

Octopus version

2023.3.13042

Step template parameter inputs

No response

What happened

I have the step working correctly without the step parameter "AzureDevOpsVariables" defined. Once I enter "JobId": {"isSecret": false,"value": "9248"} in that parameter it errors out.

I get the following error NotSpecified: An error occurred while invoking the pipeline: The remote server returned an error: (400) Bad Request. At D:\Octopus\Work\20240201224926-283385-36\Script.ps1:123 char:8

Reproduction steps

Enter a valid json parameter in the step variable AzureDevOpsVariables

More Information

No response

twerthi commented 7 months ago

Hey there @dbloch3643 ! Can you provide an example? I was able to get it to work using

"system.debug": {"isSecret": false,"value": "false"} 

as the variables section.

dbloch3643 commented 7 months ago

I'm guessing that "JobId" is a reserved word, as that was the name of my variable being passed. I changed the name in the step and in the pipeline and It worked.