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

fileLoader.fromGit wiht 0 (zero) Master build executors is with jenkins slaves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.60.3
      workflow-remote-loader 1.4
      kubernetes plugin 0.12

      Hi, i have a setup  where  i am using the kubernetes jenkins plugin to start build slaves, which works perfectly. For this i configured zero (0) executors for  the master, as I want every job be done by worker slaves (pods).

      Everything is working seamlessly. Bit if a add the fileLoader.fromGit (within oder outside the node closure in  my jenkinsfile) its
      Waiting for next available executor forever. If I set the master executors to 1 the fileloader is working. -> interestingly on the correct spawned node

      Do you think this is an issue with the fileloader?

      as follows an example of my jenkinsfile

      def podTemplateLabel='k8s-worker-'+new Date().format( 'yyyyMMddHHmmss' )
      podTemplate(label: podTemplateLabel, containers: []) {
      node(podTemplateLabel) {
              println 'START#######################################'
              def script;        
              stage('Loading scripts') {
                  container('jnlp') {
                     sh 'ls -lna'
                     println '## this is done^^###'
                     script = fileLoader.fromGit('build-pipeline', 'ssh://git@bitbucket.ci-services:7999/play/cmdhtmlk8stest.git', 'develop', 'auto_key')
                     println '##ITs never going here###'
                   }
               }        
              println 'pre script#######################################'
              script.execute(true)
              println 'END#######################################'
          }
      }

       

       

       

            escoem Emilio Escobar
            ynnebkcam benjamin mack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: