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

"Clean after checkout" completely ignored when merging

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Ubuntu Lucid, Hudson 1.373
    • Similar Issues:

      Description

      I have a matrix job that builds from origin/pending, merges onto master, and pushes back to origin/master. I also have "Clean after checkout" enabled; however, the clean step is never run.

      Output here: http://ci.pub.simplegeo.com:8080/job/sqlite3-ruby/13/ARCHITECTURE=source,DISTRIBUTION=lucid/console

      Here's the relevant portion of the job's configuration:

        <scm class="hudson.plugins.git.GitSCM">
          <configVersion>1</configVersion>
          <remoteRepositories>
            <org.spearce.jgit.transport.RemoteConfig>
              <string>origin</string>
              <int>5</int>
              <string>fetch</string>
              <string>+refs/heads/*:refs/remotes/origin/*</string>
              <string>receivepack</string>
              <string>git-upload-pack</string>
              <string>uploadpack</string>
              <string>git-upload-pack</string>
              <string>url</string>
              <string>git@github.com:simplegeo/sqlite3-ruby.git</string>
              <string>tagopt</string>
              <string></string>
            </org.spearce.jgit.transport.RemoteConfig>
          </remoteRepositories>
          <branches>
            <hudson.plugins.git.BranchSpec>
              <name>pending</name>
            </hudson.plugins.git.BranchSpec>
          </branches>
          <localBranch>master</localBranch>
          <mergeOptions>
            <mergeRemote reference="../../remoteRepositories/org.spearce.jgit.transport.RemoteConfig"/>
            <mergeTarget>master</mergeTarget>
          </mergeOptions>
          <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
          <authorOrCommitter>false</authorOrCommitter>
          <clean>true</clean>
          <wipeOutWorkspace>false</wipeOutWorkspace>
          <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
          <gitTool>Default</gitTool>
          <browser class="hudson.plugins.git.browser.GithubWeb">
            <url>http://github.com/simplegeo/sqlite3-ruby/</url>
          </browser>
          <submoduleCfg class="list"/>
          <relativeTargetDir></relativeTargetDir>
          <excludedRegions></excludedRegions>
          <excludedUsers>Simple Geebus</excludedUsers>
        </scm>
      

        Attachments

          Activity

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              ieure ieure
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: