I want to remove all changes, workspace links and logs from Jenkins front page.
I do not want unauthorized people, bots, etc to have access to this kind of information.
How can I do that?
Add new view. On the Jenkins main page, click the + tab to start the new view wizard (If you do not see a +, it is likely you do not have permission to create a new view). On the create new view page, give your view a name and select the Dashboard type and click ok.
Usage. Go to a Job (Any type of) or a Folder and click on the "Purge Build History" link on the left menu. Select none or all of the options. Reset build number to 1: Resets the next build number 1 if all the builds are deleted.
Log files should be at /var/log/jenkins/jenkins.
Linux and macOS - Jenkins logs are stored along with other log files in the /var/log directory. Windows - Jenkins log files are stored in the Jenkins home folder, which is determined during installation.
Set up your permissions to not allow unauthorized access
Make sure you have your own user/admin setup will all permission, otherwise you risk locking yourself out. If you do, use information here to reset [thanks Alex]
To configure anonymous users to not see anything:
Matrix-based security
or Project-based Matrix Authorization Strategy
. I will assume you've selected the later.authenticated
and click Add
Anonymous
and click Add
This way, anonymous (not-logged in) users will not be able to see anything, but authenticated (logged in) users will be able to see what you selected. You can drill-down into more specific user permissions by adding individual users and granting them certain permissions.
P.S. The user authentication depends on your Security Realm configuration. You can configure to use Active Directory/LDAP
, or use Jenkin's own user database
. The former means you don't have to create users in Jenkins, just give them permissions. The later means you've got to create Jenkins's users first through Manage Jenkins -> Manage Users
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With