Docker Community Forums

Share and learn in the Docker community.

Jenkins/jenkins image is not able to fetch seed job from YAML

Hi Everyone,

I am using jenkins/jenkins image for my jenkins instance from kubernetes. There I have added seedjob tag and that is pointed towards my github projects. But jenkins is not able to read the jenkins job from the github. Earlier it was working but it is not working now. Please help me to build my jenkins. Here I am using the concept of jenkins-kubernetes operator.

Please find the YAML

apiVersion: jenkins.io/v1alpha2

kind: Jenkins

metadata:

name: ******-master

spec:

master:

containers:

- name: jenkins-master

  image: jenkins/jenkins:2.222.4

  imagePullPolicy: Always

  livenessProbe:

    failureThreshold: 12

    httpGet:

      path: /****-dev/login

      port: http

      scheme: HTTP

    initialDelaySeconds: 80

    periodSeconds: 10

    successThreshold: 1

    timeoutSeconds: 5

  readinessProbe:

    failureThreshold: 3

    httpGet:

      path: /****-dev/login

      port: http

      scheme: HTTP

    initialDelaySeconds: 30

    periodSeconds: 10

    successThreshold: 1

    timeoutSeconds: 1

  resources:

    limits:

      cpu: 8000m

      memory: 16Gi

    requests:

      cpu: 1000m

      memory: 500Mi

  env:

    - name: JENKINS_OPTS

      value: --prefix=/****-dev

volumes:

- name: tmp

  emptyDir: {}

basePlugins:

- name: kubernetes

  version: "1.25.2"

- name: workflow-job

  version: "2.39"

- name: workflow-aggregator

  version: "2.6"

- name: git

  version: "4.2.2"

- name: job-dsl

  version: "1.77"

- name: configuration-as-code

  version: "1.38"

- name: kubernetes-credentials-provider

  version: "0.13"

plugins:

- name: simple-theme-plugin

  version: "0.6"

- name: artifactory

  version: "3.4.1"

- name: docker-plugin

  version: "1.2.0"

- name:  email-ext

  version: "2.69"

seedJobs:

** - id: **-operator

** targets: “***/cicd/jobs/.jenkins”**

** description: “Operator repository”**

** repositoryBranch: master**

** repositoryUrl: https://****.git