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

Contents of shell script build step wiped out

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: core
    • Labels:
      None
    • Environment:
      Hudson running on Linux; Safari on MacOS 10.6 for the browser.

      Description

      This has happened to me at least twice, and I've yet to figure out what the cause is. I tried searching the bug DB and didn't find any prior reports of this, but it was hard to formulate search terms that would provide accurate results. If it's a dupe, sorry.

      The issue is, I open the Configuration page for a job that has a shell script configured as a build step, and the contents of the shell script text box is blank! The config.xml for the job shows:

      <builders>
      <hudson.tasks.Shell>
      <command></command>
      </hudson.tasks.Shell>
      </builders>

      This is a horrible data loss bug... I've had to reconstruct the shell script by looking at the console log of previous job runs. Furthermore, the job still "succeeds" because the various other build tasks work, so you might not immediately realize that it wasn't doing everything it was supposed to!

      If there's anything I can do to increase logging on my side or something to help track this down, please let me know. For now I'm going to start making hot copies of the job config.xml files every so often so I can recover the configuration if need be.

        Activity

        Hide
        owenmehegan owenmehegan added a comment -

        I was never able to repro this and have not seen it since. Must have been cosmic rays.

        Show
        owenmehegan owenmehegan added a comment - I was never able to repro this and have not seen it since. Must have been cosmic rays.
        Hide
        msavich Alex added a comment -

        I have the same trouble on Jenkins 1.565 (CentOS).
        I open the job configuration, add a new shell script and its content, save configuration and open it again...
        And I see empty shell script! Shell script with no content in it.

        Show
        msavich Alex added a comment - I have the same trouble on Jenkins 1.565 (CentOS). I open the job configuration, add a new shell script and its content, save configuration and open it again... And I see empty shell script! Shell script with no content in it.
        Hide
        msavich Alex added a comment -

        I have the same trouble on Jenkins 1.565 (CentOS).
        I open the job configuration, add a new shell script and its content, save configuration and open it again...
        And I see empty shell script! Shell script with no content in it.

        Show
        msavich Alex added a comment - I have the same trouble on Jenkins 1.565 (CentOS). I open the job configuration, add a new shell script and its content, save configuration and open it again... And I see empty shell script! Shell script with no content in it.
        Hide
        danielbeck Daniel Beck added a comment -

        The new instance of the issue was filed as JENKINS-23151 and was resolved in 1.567.

        Show
        danielbeck Daniel Beck added a comment - The new instance of the issue was filed as JENKINS-23151 and was resolved in 1.567.

          People

          • Assignee:
            owenmehegan owenmehegan
            Reporter:
            owenmehegan owenmehegan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: