jenkins on davidchua https://dchua.com/tags/jenkins/ Recent content in jenkins on davidchua Hugo -- gohugo.io en-us Fri, 10 Jun 2016 00:00:00 +0000 Getting Started with Jenkins using Docker https://dchua.com/posts/2016-06-10-getting-started-with-jenkins-using-docker/ Fri, 10 Jun 2016 00:00:00 +0000 https://dchua.com/posts/2016-06-10-getting-started-with-jenkins-using-docker/ $ docker run --user root --privileged -p 8080:8080 -p 50000:50000 -v /path/to/host/volume:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkins Lets break it down. -p 8080:8080 What we’re doing here is to expose the Jenkins port on the container out to the host. Jenkins uses 8080 by default so you may want to change the host port to a port that you find comfortable. -p 50000:50000 Jenkins uses port 50000 for its REST API. Expose this too. Installing Jenkins Plugins with their Dependencies in One Step https://dchua.com/posts/2016-06-02-installing-jenkins-plugins-with-their-dependencies-in-one-step/ Thu, 02 Jun 2016 00:00:00 +0000 https://dchua.com/posts/2016-06-02-installing-jenkins-plugins-with-their-dependencies-in-one-step/ Assuming that your Jenkins server is listening at port 8080, all you need to do is to run the following curl command: $ curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' http://localhost:8080/pluginManager/installNecessaryPlugins Replace [email protected] with the name of your plugin you’re trying to install by looking for the plugin-id in the plugin’s page. ie for Docker Build Step, the Plugin ID listed on the page is docker-build-step So your curl script should look something like: