Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-2632

Generate explicit seed job and run it once during start-up using JCASC and Seed job not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Do
    • Component/s: jenkins.io
    • Labels:
      None
    • Similar Issues:

      Description

      JCASC plugin not queuing jobs which are created from the jobs module.

      Jcasc config added for creating a freestyle Job and queue it for run the JOb on startup. Jenkins has the Job created but the Job dint run on startup even after queuing.

       

      jobs:
          - script: >
              freeStyleJob('Seed_job') {
                  scm {
                      git{
                          branch('master')
                          remote{'https:github.test.com/jenkins_SeedJob.git')
                                  }                 
                              }
                          }
                  triggers {
                       githubPush()
                           }
                  steps {
                      dsl {
                          external('seedJob.groovy')
                          removeAction('DELETE')
                      }
                      }
                  }
           - script: queue('Seed_job')
      

       

       

       

       
       

        Attachments

          Activity

          Hide
          santhu3064 santhosh ruttala added a comment -

          There is an issue opened in JCASC plugin which is closed to create an issue under Job DSL plugin.

           

          https://github.com/jenkinsci/configuration-as-code-plugin/issues/876

          Show
          santhu3064 santhosh ruttala added a comment - There is an issue opened in JCASC plugin which is closed to create an issue under Job DSL plugin.   https://github.com/jenkinsci/configuration-as-code-plugin/issues/876

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            santhu3064 santhosh ruttala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: