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

First build fails when executing pre-scm shell script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • prescmbuildstep-plugin
    • None
    • ubuntu 10.10 slave build nodes (will affect all *nix environments, possibly windows as well)

      The first time a build is run, any pre-scm shell commands will fail.

      This is because the shell scripts use the workspace as the current working directory.

      It doesn't seem to be possible to work around this by creating the directory- the create directory commands will also fail due to above.

      During the SCM phase of the build, the workspace is created, and so the 2nd and subsequent builds will pass. In an environment with a lot of build agents (that get re-imaged), this issue creates a lot of headaches for me.

            cjo9900 cjo9900
            sugarshark Will Stana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: