-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: workflow-remote-loader-plugin
-
None
-
Environment: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#######################################'
   }
}
Â
Â
Â