|
All checks were successful
fredrik/jenkins/pipeline/head This commit looks good
|
||
|---|---|---|
| Jenkinsfile | ||
| manifest.yaml | ||
| README.md | ||
jenkins
Plugins
LDAP
Under "Manage Jenkins > Security" change to LDAP Security Realm. Add URL and other specifics of LDAP instance.
Kubernetes
Remove executors under "Manage Jenkins > Nodes > Build-In Node > Configure".
Add a Kubernetes cloud under "Manage Jenkins > Clouds". Jenkins URL should be set to "http://jenkins-service.jenkins.svc.cluster.local:8080". It should have the following pod template with "dockerd" as start command:
apiVersion: v1
kind: Pod
metadata:
name: jenkins-agent
namespace: jenkins
spec:
containers:
- name: docker
image: docker:27.3.1-dind
securityContext:
privileged: true
env:
- name: DOCKER_TLS_CERTDIR
volumeMounts:
- name: docker
mountPath: /var/lib/docker
volumes:
- name: docker
persistentVolumeClaim:
claimName: jenkins-agent-pvc
Gitea
Create forgejo-user credentials for interacting with the Forgejo server under "Manage Jenkins > Credentials > System > Global credentials (unrestricted)". The system user should be able to push changes to the Forgejo instance. Create a forgejo-pat credential by generating a PAT for the user with write permissions to the repos that will be handled by the integration in Forgejo.
Add a Gitea server with specifics under "Manage Jenkins > System", check Manage Webhooks, and add the system user credentials.
Click on New Item in the Dashboard and create an Organizational Folder from the Forgejo instance. "Branch names to build automatically" should only be main.