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

White screen after submitting job generation

    XMLWordPrintable

Details

    Description

      A white screen of death appears when running the generator job, displaying URL like ${JENKINS_URL}/job/${JOB_NAME}/build?delay=0sec.

      Nevertheless, generation job executes successfully, generated jobs appear / disappear as expected after build, and after refreshing the page Jenkins displays generator job page again.

      All other builds, both parametrized and not-parametrized are triggered as expected, without blank screen.

      Both system log and jenkins.log files display no errors or exceptions:

      Dec 18, 2013 10:11:59 AM org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl doRun
      INFO: Updated configuration of job gen_madre_mio
      Dec 18, 2013 10:11:59 AM hudson.model.Run execute
      INFO: mcs-tools-simple-generator #9 main build action completed: SUCCESS

      Attachments

        Activity

          Thank you for this accurate bug report. I will look into it.

          syl20bnr Sylvain Benner added a comment - Thank you for this accurate bug report. I will look into it.

          Hello, Sylvain,

          Looks like I found how this issue can be resolved.

          The symptoms are similar to https://issues.jenkins-ci.org/browse/JENKINS-18425, thus the changes should be the same.

          In [src\main\resources\org\jenkinsci\plugins\jobgenerator\parameters\GeneratorParametersDefinitionProperty\index.jelly] the last "<f:block />" entry should be extended with two hidden input fields:

          <f:block>
          <!-- Changes, similar to https://issues.jenkins-ci.org/browse/JENKINS-18425 -->
          <input type="hidden" name="statusCode" value="303" />
          <input type="hidden" name="redirectTo" value="." />
          <f:submit value="${%Generate}" />
          </f:block>

          After updating this file and rebuilding the plugin JPI I've got your plugin working as expected. Sorry, now I have no time to produce a valid Git pull request.

          foxbat_a Alex Artyukhovskii added a comment - Hello, Sylvain, Looks like I found how this issue can be resolved. The symptoms are similar to https://issues.jenkins-ci.org/browse/JENKINS-18425 , thus the changes should be the same. In [src\main\resources\org\jenkinsci\plugins\jobgenerator\parameters\GeneratorParametersDefinitionProperty\index.jelly] the last "<f:block />" entry should be extended with two hidden input fields: <f:block> <!-- Changes, similar to https://issues.jenkins-ci.org/browse/JENKINS-18425 --> <input type="hidden" name="statusCode" value="303" /> <input type="hidden" name="redirectTo" value="." /> <f:submit value="${%Generate}" /> </f:block> After updating this file and rebuilding the plugin JPI I've got your plugin working as expected. Sorry, now I have no time to produce a valid Git pull request.

          Hi Alex,

          Good timing! I was starting to resolve this. Very happy that you found the fix. I'm going to make the fix and add you to the contributors.
          Thank you and happy new year

          syl20bnr Sylvain Benner added a comment - Hi Alex, Good timing! I was starting to resolve this. Very happy that you found the fix. I'm going to make the fix and add you to the contributors. Thank you and happy new year

          Code changed in jenkins
          User: syl20bnr
          Path:
          src/main/resources/org/jenkinsci/plugins/jobgenerator/parameters/GeneratorParametersDefinitionProperty/index.jelly
          http://jenkins-ci.org/commit/jobgenerator-plugin/f1fbf88a8fea36cd35a598569ad952f72fa8a984
          Log:
          JENKINS-21072 White screen after submitting job generation

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: syl20bnr Path: src/main/resources/org/jenkinsci/plugins/jobgenerator/parameters/GeneratorParametersDefinitionProperty/index.jelly http://jenkins-ci.org/commit/jobgenerator-plugin/f1fbf88a8fea36cd35a598569ad952f72fa8a984 Log: JENKINS-21072 White screen after submitting job generation

          People

            syl20bnr Sylvain Benner
            foxbat_a Alex Artyukhovskii
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: