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

RUN-1002: rd projects scm perform project-commit issue #458

Closed
isuftin opened this issue Jun 17, 2022 · 1 comment
Closed

RUN-1002: rd projects scm perform project-commit issue #458

isuftin opened this issue Jun 17, 2022 · 1 comment
Labels
bug to-jira (automation) add to jira

Comments

@isuftin
Copy link

isuftin commented Jun 17, 2022

I seem to be unable to perform a project commit for multiple jobs using the cli.

Fail for multiple jobs that are surrounded by quotes:

rd projects scm perform --project=MyProject --integration="export" --field="message='Daily sync'" --action="project-commit" \
  --job="221533ab-6d50-4345-adda-1c2a5408ffae 15a8b7f4-3bc3-4783-b1b4-eebf6679269e"
Action project-commit failed
No jobs were selected

Pass for single job surrounded by quotes:

rd projects scm perform --project=MyProject --integration="export" --field="message='Daily sync'" --action="project-commit" \
  --job="15a8b7f4-3bc3-4783-b1b4-eebf6679269e"
# Action project-commit was successful.
# Result: SCM export Action was Successful: project-commit

Fail for multiple jobs without quotes:

rd projects scm perform --project=MyProject --integration="export" --field="message='Daily sync'" --action="project-commit" \
  --job=221533ab-6d50-4345-adda-1c2a5408ffae 15a8b7f4-3bc3-4783-b1b4-eebf6679269e

Unmatched argument at index 8: '15a8b7f4-3bc3-4783-b1b4-eebf6679269e'

According to the cli/docs, I can pass in space separate job ids.

$ rd --version
2.0.0

Rundeck version 4.3.1

@gschueler gschueler added bug to-jira (automation) add to jira labels Jun 17, 2022
@gschueler
Copy link
Member

workaround, use --job=id --job=id2 (i.e., just repeat the --job argument)

@gschueler gschueler changed the title rd projects scm perform project-commit issue RUN-1002: rd projects scm perform project-commit issue Jun 21, 2022
gschueler added a commit that referenced this issue Jun 21, 2022
…m-project-commit-issue

RUN-1002: Fix #458 space separated scm scm perform options not working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug to-jira (automation) add to jira
Projects
None yet
Development

No branches or pull requests

2 participants