Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62606

Jobs created with JCASC using Job dsl are not queued on start up.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Jobs created with JCASC using Job DSL are not queued on startup.

      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.

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

       

            jamietanna Jamie Tanna
            santhu3064 santhosh ruttala
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: