To create Jenkins
- Download and install VirtualBox.
- Download and install Vagrant.
- Clone repository
git clone https://github.com/nixuser/jenkins_env.git
- Change directory to jenkins_env
cd jenkins_env
- Run script
place_private_key_to_file.sh
or run commands from it one by one. - Check access to web interface http://localhost:8085/ and use default password admin/123456. You can change password in jenkins_up.sh.
Update plugins
vagrant ssh server
- Find container name from
docker ps
output or useCONTAINER_NAME=$(docker ps --filter publish=8080 --format '{{.Names}}')
docker exec -it ${CONTAINER_NAME} bash -c "stty -onlcr && jenkins-plugin-cli -f /usr/share/jenkins/ref/plugins_list.txt --available-updates --output txt" > /vagrant/jenkins/plugins_list.txt