.. _l-cheatsheet-jenkins: Cheat Sheet on Jenkins ====================== .. contents:: :local: Installation ++++++++++++ Install Java: :: apt-get install openjdk-11-jdk Install Jenkins: :: wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \ /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins Remove Jenkins: :: apt-get remove --purge jenkins Change Jenkins user: :: nano /etc/init.d/jenkins chown -R dupre:dupre somewhere chown -R dupre:dupre /var/cache/jenkins chown -R dupre:dupre /var/log/jenkins chown -R jenkins:jenkins somewhere chown -R jenkins:jenkins /var/cache/jenkins chown -R jenkins:jenkins /var/log/jenkins /etc/init.d/jenkins restart Plugins +++++++ * `Build timeout plugin `_ * `Console column plugin `_ * `Next executions `_ * `Collapsing Console Sections Plugin `_ * `Exclusive Execution `_ Start, Restart ++++++++++++++ :: /etc/init.d/jenkins start Reset passwords +++++++++++++++ * Edit file ``somewhere/config.xml``. * Search for ``true``, change ``true`` to ``false``. * Restarts the service ``/etc/init.d/jenkins restart``. * Change the security settings. * Restart again.