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

PostBuildScript plugin does not load its configuration properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: postbuildscript-plugin
    • Labels:
      None
    • Environment:
      Jenkins: v. 1.458 (but also 1.419)
      OS: Debian Lenny/Squeeze
    • Similar Issues:

      Description

      The PostBuildScript plugin works great.

      However, I've noticed that when I load up the configuration page for my job in jenkins, the PBS information is missing. The config in screenshot1.png doesn't show up when the configuration is loaded again in screenshot2.png. If the config.xml is examined, the data is there:

          <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
            <genericScriptFileList>
              <org.jenkinsci.plugins.postbuildscript.GenericScript>
                <filePath>/usr/bin/send_post_build_message.sh</filePath>
              </org.jenkinsci.plugins.postbuildscript.GenericScript>
            </genericScriptFileList>
            <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
          </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
      

      And after saving the second time (as in screenshot2.png), the script is missing from config.xml:

          <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
            <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
          </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
      

      I've made some customizations to the PBS plugin (as seen here https://github.com/mediatemple/postbuildscript-plugin in the build_info_as_env branch), but after looking at the code for a while, I think this is a little above my ken.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/resources/org/jenkinsci/plugins/postbuildscript/PostBuildScript/config.jelly
          http://jenkins-ci.org/commit/postbuildscript-plugin/8fb91fbb3112fb540977b9e13411ffd9e64d4f04
          Log:
          Fix JENKINS-13418

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/resources/org/jenkinsci/plugins/postbuildscript/PostBuildScript/config.jelly http://jenkins-ci.org/commit/postbuildscript-plugin/8fb91fbb3112fb540977b9e13411ffd9e64d4f04 Log: Fix JENKINS-13418
          Hide
          gbois Gregory Boissinot added a comment -

          It was an issue in the UI.
          I fixed it.
          For your customizations on your fork, do not hesitate to provide a pull request.
          Thanks

          Show
          gbois Gregory Boissinot added a comment - It was an issue in the UI. I fixed it. For your customizations on your fork, do not hesitate to provide a pull request. Thanks
          Hide
          njones Nate Jones added a comment -

          Yup. Your change fixed the bug. Thank you!

          Show
          njones Nate Jones added a comment - Yup. Your change fixed the bug. Thank you!

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              njones Nate Jones
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: