Skip to content
Hunter Wu edited this page Sep 9, 2019 · 2 revisions

docker

docker pull jenkins/jenkins
docker run \
  -u root \
  --rm \
  -d \
  -p 8080:8080 \
  -p 50000:50000 \
  -v jenkins-data:/var/jenkins_home \
  -v /var/run/docker.sock:/var/run/docker.sock \
  jenkins/jenkins
apt install rsync composer

project shell

export RSYNC_PASSWORD=rsync_password_here
rsync -rltzuv subdir [email protected]::www/

cli

http://localhost:8080/cli
# install plugin
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth <user>:<pass> install-plugin http://somewhere/git-parameter.hpi

# restart
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth <user>:<pass> restart
Clone this wiki locally