Pitou Posted October 1, 2022 Report Share Posted October 1, 2022 Hi, I try to add an `after-checkin` trigger to start a build on a Jenkins server. The issue looks like that my URL contains a question mark, to put additionnal parameters (the build token). Here is the full command line I use on Windows powershell (doesn't work): cm trigger create after-checkin CiNotifierWebTrigger "webtrigger http://<raw ipv4>:8080/job/TestBuild/build?token=<jenkins_build_token>" --server=<my_cloud_server>@cloud --filter="br:/Development,rep:<my_rep_name>" This command doesn't create the trigger, and displays the usage help for cm trigger create (no error) If I remove the character ?, the trigger is successfully registered, but the url is not what I need. I tryied to use %3F instead of the question mark, but it didn't trigger on checkin. Tryied also to escape the question mark with `, but it also displays the usage help for cm trigger create. I'm out of idea on this... Link to comment Share on other sites More sharing options...
Pitou Posted October 6, 2022 Author Report Share Posted October 6, 2022 I also tryied to use variables like so: $TRIGGER_URL="webtrigger http://<raw_ipv4>:8080/buildByToken/build?job=<job_name>&token=SECRET" cm trigger create after-checkin CiNotifierWebTrigger $TRIGGER_URL --server=<my_server>@cloud --filter="br:/Development,rep:<my_repo>" But it has the same issue, as long as there is a question mark (?) in the url, the CLI shows the help instead add the trigger as I want (or an error)... Without the question mark, the CLI successfully add the webtrigger. Is it a bug in the CLI? Link to comment Share on other sites More sharing options...
Rafael Posted October 12, 2022 Report Share Posted October 12, 2022 Hi, We are aware of this limitation and we already developed a fix for it, which should be available in the next week release: Quote [Bug] Command-line client: Triggers should allow arguments with question marks Sorry for the inconveniences, I will keep you updated on the release. Regards, RafaelUnity Plastic SCM SupportVirtualize your Workspace. Make it dynamic. Link to comment Share on other sites More sharing options...
Rafael Posted October 20, 2022 Report Share Posted October 20, 2022 Hi, This should be fixed in the latest release, please confirm everything is ok now. Regards, RafaelUnity Plastic SCM SupportVirtualize your Workspace. Make it dynamic. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now