-
Notifications
You must be signed in to change notification settings - Fork 240
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
Can't create node #122
Can't create node #122
Conversation
:mode => "normal" | ||
:mode => "normal", | ||
:private_key_file => "", | ||
:credentialsId => "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to have this as credentials_id
to be consistent with the rest of the variable naming in this method?
Ofc, totally missed this since we modified this in a rush to get it working with a PoC. How stupid of me to not see this pattern. Anything else? I will make the necessary changes tomorrow |
Nope, that's the only thing I can see. I'll go ahead and merge it once that is done. Thanks! |
Fixed! Hoping for a new gem release soon! |
@@ -167,6 +170,7 @@ def create_dump_slave(params) | |||
"port" => params[:slave_port], | |||
"username" => params[:slave_user], | |||
"privatekey" => params[:private_key_file], | |||
"credentials_id" => params[:credentials_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't mean to change all occurrences of credentialsId
to credentials_id
. I believe this should be
"credentialsId" => params[:credentials_id]
or else jenkins wouldn't be able to recognize it. What I meant is that Jenkins uses the Java notation for attribute names and we wanted to keep it in Ruby style and then passing it correctly when passing it to Jenkins remote API. Is that clear?
Also if you could test it once, I would really appreciate it.
Done and tested. Tested with irb and works perfectly! |
Awesome. |
Version |
Using LTS Jenkins ver. 1.532.1 installed by rpm on CentOS 6.4
jenkins_api_client.git on fa7a2ea