如何调出Jenkins的Manage Jenkins及Credentials按钮?
Hey there! As someone who stumbled through this exact issue when I was new to Jenkins, let me break down the most common fixes—this almost always comes down to permission settings since Jenkins keeps admin features locked down tight by default.
Step 1: Verify Your Account Has Admin Permissions
If you're already logged in, start here:
- Look for your username in the top right corner of the Dashboard, click it, then select Configure.
- In your user configuration page, check the Groups or Permissions section. Make sure your account is part of the
admingroup, or that you have theOverall/Administerpermission explicitly assigned. - If you don't see the user configuration option at all, you're probably logged in as an anonymous user. Try logging out and signing back in with an admin account (if you have one).
Step 2: Reset Permissions via Jenkins Config File (If You Can't Access Admin Settings)
If you've lost admin access or never set one up, you'll need to tweak the Jenkins config file on your remote server:
- SSH into your remote Jenkins server (or access the file system directly if it's a Windows server).
- Locate Jenkins' home directory:
- Linux: Usually
/var/lib/jenkins - Windows: Typically
C:\Program Files\Jenkins
- Linux: Usually
- Stop the Jenkins service:
- Linux: Run
sudo systemctl stop jenkins - Windows: Open Services, find Jenkins, and click Stop
- Linux: Run
- Open the
config.xmlfile in a text editor. - Find the line
<useSecurity>true</useSecurity>and changetruetofalse. Save the file. - Restart Jenkins:
- Linux:
sudo systemctl start jenkins - Windows: Start the Jenkins service again via Services
- Linux:
- Now you can access Jenkins without security enabled. Go to Manage Jenkins → Configure Global Security to re-enable security, create an admin account, and assign proper permissions.
- Don't forget to set
<useSecurity>true</useSecurity>back inconfig.xmland restart Jenkins once you're done—security is non-negotiable!
Step 3: Check for Required Plugins
While Manage Jenkins is a default feature, the Credentials button depends on the Credentials Plugin:
- Once you have admin access, go to Manage Jenkins → Manage Plugins.
- Switch to the Installed tab and search for Credentials Plugin. If it's missing, go to the Available tab, find it, install it, then restart Jenkins.
内容的提问来源于stack exchange,提问作者Asish
相关产品推荐
相关产品推荐

