kubesphere-devops-jenkins
यह क्या करती है
यह स्किल AI एजेंट को Jenkins कॉन्फ़िगर करने और उसकी समस्याएँ ठीक करने में मदद करती है, जो KubeSphere DevOps में build engine के रूप में इस्तेमाल होता है। यह उन platform ऑपरेटरों के लिए है जो KubeSphere में CI builds चलाते हैं।
कब इस्तेमाल करें
- ✓जब आपको बदलना हो कि Jenkins उपयोगकर्ताओं को कैसे साइन इन कराए, जैसे LDAP या OIDC से।
- ✓जब आप Jenkins build agent image को कस्टमाइज़ करना या GitLab सर्वर जोड़ना चाहते हैं।
- ✓जब कोई Jenkins build शुरू न हो या उसके logs और artifacts न मिलें।
Skill का लिंक
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-devops-jenkins/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे KubeSphere DevOps के Jenkins को हमारे कंपनी LDAP से जोड़ने में मदद कर सकते हैं, ताकि लोग साइन इन कर सकें?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट क्लस्टर में Jenkins कॉन्फ़िगरेशन पढ़ता है, मौजूदा सेटअप जाँचता है और बदलाव सुझाता है। वह Jenkins console के admin पहुँच विवरण और access port भी देख सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
KubeSphere DevOps Jenkins Configuration
Overview
KubeSphere DevOps embeds Jenkins as the CI engine. Jenkins is configured via Configuration as Code (CasC) and provides the underlying pipeline execution environment. Understanding Jenkins configuration is essential for customizing agents, authentication, and resource management.
When to Use
- Accessing Jenkins console directly
- Configuring LDAP or OIDC authentication
- Customizing Jenkins agent images
- Configuring GitLab or other SCM servers
- Troubleshooting Jenkins startup issues
- Updating Jenkins after DevOps upgrade
- Triggering builds via API
- Downloading build artifacts
- Viewing build logs and status
Accessing Jenkins Console
Get Admin Credentials
# Get Jenkins admin user and password
kubectl -n kubesphere-devops-system get secret devops-jenkins -o yaml
# Decode values
echo "<jenkins-admin-password-base64>" | base64 -d
echo "<jenkins-admin-user-base64>" | base64 -d
Get Jenkins NodePort
kubectl -n kubesphere-devops-system get svc devops-jenkins
# Default NodePort: 30180
Access via: http://<master-node-ip>:30180
Configuration As Code (CasC)
Jenkins configuration is managed through the jenkins-casc-config ConfigMap:
# View current CasC
kubectl -n kubesphere-devops-system get cm jenkins-casc-config -o yaml
Key Configuration Sections
agent:
jenkins:
Master:
NodeSelector: {}
Tolerations: []
Agent:
Image: "jenkins/inbound-agent"
Tag: "3309.v27b_9314fd1a_4-1-jdk21"
Privileged: false
NodeSelector: {}
Authentication Configuration
LDAP Integration
agent:
jenkins:
exactSecurityRealm:
ldap:
configurations:
- displayNameAttributeName: "uid"
mailAddressAttributeName: "mail"
inhibitInferRootDN: false
managerDN: "cn=admin,dc=kubesphere,dc=io"
managerPasswordSecret: "admin"
rootDN: "dc=kubesphere,dc=io"
userSearchBase: "ou=Users"
userSearch: "(&(objectClass=inetOrgPerson)(|(uid={0})(mail={0})))"
groupSearchBase: "ou=Groups"
groupSearchFilter: "(&(objectClass=posixGroup)(cn={0}))"
server: "ldap://openldap.kubesphere-system.svc:389"
disableMailAddressResolver: false
disableRolePrefixing: true
OpenID Connect (OIDC) Integration
agent:
jenkins:
exactSecurityRealm:
oic:
clientId: "jenkins"
clientSecret: "jenkins"
tokenServerUrl: "http://192.168.1.20:30880/oauth/token"
authorizationServerUrl: "http://192.168.1.20:30880/oauth/authorize"
userInfoServerUrl: "http://192.168.1.20:30880/oauth/userinfo"
endSessionEndpoint: "http://192.168.1.20:30880/oauth/logout"
logoutFromOpenidProvider: true
scopes: openid profile email
fullNameFieldName: url
userNameField: preferred_username
redirectURIs:
- http://192.168.1.20:30180/securityRealm/finishLogin
GitLab Integration
Configure GitLab servers for pipeline integration:
agent:
jenkins:
unclassified:
gitLabServers:
- name: "gitlab-a"
serverUrl: "https://gitlab.a.com"
- name: "gitlab-b"
serverUrl: "https://gitlab.b.com"
After updating ConfigMap, create credentials in Jenkins Console:
- Manage Jenkins > System
- Find GitLab section
- Add credentials (GitLab Personal Access Token)
- Test connection
- Save
Agent Customization
Update JNLP Image (v1.2.x)
# Get current config
kubectl -n kubesphere-devops-system get cm jenkins-casc-config -o yaml > /tmp/casc-old.yaml
# Update image version
sed 's/inbound-agent:4.10-2/inbound-agent:3309.v27b_9314fd1a_4-1-jdk21/g' /tmp/casc-old.yaml > /tmp/casc.yaml
# Apply new config
kubectl apply -f /tmp/casc.yaml
# Restart Jenkins
kubectl -n kubesphere-devops-system rollout restart deployment devops-jenkins
Enable Podman for Non-Docker Environments
For hosts running containerd instead of Docker:
agent:
jenkins:
Agent:
Privileged: true # Required for podman
Use agent images with -podman suffix. These alias docker command to podman.
Custom Agent PodTemplate
agent:
jenkins:
Agent:
PodTemplate:
Name: "default"
Label: "jenkins-agent"
Containers:
- Name: "jnlp"
Image: "jenkins/inbound-agent:3309.v27b_9314fd1a_4
अक्सर पूछे जाने वाले सवाल
Jenkins की कॉन्फ़िगरेशन कहाँ रखी जाती है?
स्किल बताती है कि वह DevOps system namespace के एक configuration map में रहती है, और एजेंट उसे kubectl से पढ़ता है।
क्या एजेंट मेरे लिए Jenkins console खोल सकता है?
वह बता सकता है कि console तक कैसे पहुँचें, क्लस्टर में रखे access port और admin विवरण का उपयोग करके।
क्या यह builds शुरू कर सकता है?
हाँ। स्किल API से builds शुरू करने और build logs व स्थिति पढ़ने को कवर करती है।
जानकारी
लेखक का मूल विवरण
Use when configuring Jenkins in KubeSphere DevOps, including agent customization, LDAP/OIDC integration, build artifact retrieval, or troubleshooting Jenkins issues
repo: kubesphere/kubesphere
लोकप्रियता
- GitHub स्टार
- 17k
- रैंकिंग में स्थान
- #10769
- लाइसेंस
- —
- अपडेट की गई
- 14/7/2026
कमेंट
- …
इस repository की और skills
frontend-forge-fe-operations
17kआपके एजेंट को KubeSphere में FrontendExtension संसाधनों को बनाने, प्रकाशित करने और डीबग करने में मदद करती है।
frontend-forge-fi-operations
17kआपके एजेंट को KubeSphere में FrontendIntegration संसाधन और frontend-forge extension बनाने, अपडेट करने, चालू या बंद करने और जाँचने में मदद करती है।
frontend-integration-yaml
17kआपके एजेंट को एक मेनू और उसके एक या अधिक पेजों के लिए सबमिट करने योग्य FrontendIntegration YAML बनाने में मदद करती है।
kubeeye
17kआपके एजेंट को KubeEye इंस्टॉल करने, क्लस्टर निरीक्षण नियम और योजनाएँ सेट करने, और फिर निरीक्षण रिपोर्ट पढ़ने में मदद करती है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।