Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"arguments" instead of "cli_arguments" when starting a job #3

Open
MBerdasco opened this issue May 28, 2024 · 0 comments
Open

"arguments" instead of "cli_arguments" when starting a job #3

MBerdasco opened this issue May 28, 2024 · 0 comments

Comments

@MBerdasco
Copy link

I didn't test the PS module but I checked the sources looking for help in order to see how the REST API works and I found out a possible issue:

if($CLIArguments)
{
$Body.Add("cli_arguments", $CLIArguments)
}

"cli_arguments" does not work for me (at least in Semaphore v2.9.56). Changed to "arguments" works perfectly. In fact, this is how the Semaphore UI send the payload when starting a job

arguments: "[\"--extra-vars\", \"serverList=server1.mydomain.com\"]" environment: "{}" project_id: 1 template_id: 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant