No description
Find a file
Fredrik Hansen 3cca7b73a1
All checks were successful
fredrik/jenkins/pipeline/head This commit looks good
Updated version
2025-10-04 16:57:47 +02:00
Jenkinsfile Simplified Jenkinsfile 2023-07-18 13:45:37 +02:00
manifest.yaml Updated version 2025-10-04 16:57:47 +02:00
README.md Added forgejo-pat instructions to readme 2024-12-22 19:22:37 +01:00

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.