Skip to content

Load CPS library from central location - #29

Open
harniman wants to merge 1 commit into
jenkinsci:masterfrom
nharniman:master
Open

Load CPS library from central location#29
harniman wants to merge 1 commit into
jenkinsci:masterfrom
nharniman:master

Conversation

@harniman

@harniman harniman commented May 6, 2016

Copy link
Copy Markdown

No description provided.

@harniman

harniman commented May 6, 2016

Copy link
Copy Markdown
Author

cc @reviewbybees

@ghost

ghost commented May 6, 2016

Copy link
Copy Markdown

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/*'"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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

Successfully merging this pull request may close these issues.

2 participants