Jenkins Integration
Learn how to integrate Jenkins with Cokpit
Useful Links
🔗 Jenkins Login
-
Local development:
http://localhost:8080/login -
Cloud deployment: Your Jenkins URL (e.g.,
https://jenkins.example.com/login)
🔗 Important URLs
- Official Jenkins Website
- Jenkins Documentation
- User Configuration:
- Local:
http://localhost:8080/user/YOUR_USERNAME/configure - Cloud:
https://your-jenkins-url/user/YOUR_USERNAME/configure
- Local:
💡 Note: Replace
your-jenkins-urlwith your actual Jenkins instance URL.
Jenkins Credentials
Step 1: Create API Token in Jenkins
-
Log in to your Jenkins instance at
your-jenkins-url/login(e.g.,https://jenkins.example.com/login). -
Once logged in, click on your username in the top right corner.
-
Navigate to
your-jenkins-url/user/your-username/configureor click Configure (gear icon). -
Alternatively, you can:
- Go to People → Click on your username → Configure
- Or use the direct path:
your-jenkins-url/me/configure
-
In the API Token section, click Add new Token.
-
Give your token a description (e.g., "Cokpit Integration").
-
Click Generate.
-
Copy your token immediately.
💡 Tip: Save your API token in a secure location. You won't be able to see it again!
Step 2: Add Jenkins Credentials to Cokpit
- Navigate to Cokpit Dashboard.
- Go to Settings → Integrations → CI/CD → Jenkins.
- Click Add secret.
- Fill in the required fields:
- Enter a unique Secret Name (e.g.,
jenkins-secret) - Enter your Jenkins Endpoint URL (e.g.,
https://jenkins.example.com) - Enter your Jenkins Username
- Paste your API Token in the password field
- Enter a unique Secret Name (e.g.,
- Click Submit.
Security Best Practices
- Create API tokens with minimal required permissions
- Use different tokens for different applications
- Regularly rotate API tokens
- Enable security features in Jenkins:
- Enable authentication
- Use HTTPS
- Configure proper authorization
- Monitor token usage in Jenkins audit logs
- Remove unused tokens promptly