Skip to content

khoroshevj/jenkins-slave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Debian Stretch agent with jdk8

Build and push

docker build -t registry.example.com:5000/jenkins-slave:latest . docker push registry.example.com:5000/jenkins-slave:latest

SSH credentials for jenkins

Create ssh credentials https://jenkins.io/doc/book/using/using-credentials/ or use existing

Run

docker run registry.example.com:5000/jenkins-slave:latest \
-e JENKINS_SLAVE_SSH_PUBKEY='{jenkins ssh public key}' \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
-p 50022:22

Configure jenkins slave

https://plugins.jenkins.io/ssh-agent/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published