Load CPS library from central location - #29
Conversation
|
cc @reviewbybees |
|
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
| stage "checkout" | ||
| checkout scm | ||
| stage "push to jenkins" | ||
| sh "git push jenkins@localhost:workflowLibs.git '+refs/remotes/origin/*:refs/heads/*'" |
There was a problem hiding this comment.
I think this needs a lot of documentation — this won't work at all out of the box.
For this to work, you would need to enable the SSH server inside Jenkins, and have set the SSH server to run on port 22 (which I guess would require some pretty special setup on that machine), and have security disabled.
If security is enabled, then you'd need to add a jenkins user to Jenkins, create a key pair for them in $JENKINS_HOME/.ssh on the master, add the corresponding public key to Jenkins, and have git installed on the master.
No description provided.