Skip to content

Conversation

@mathiasburger
Copy link

@mathiasburger mathiasburger commented May 5, 2017

The git plugin supports a noTags option which is especially useful in combination with shallow. In fact without noTags shallow copies can get quite big.

In this PR I added the noTags option to the job dsl. The tests were extended and I tested the plugin on my local jenkins instance by creating a freestyle job with a "Process Job DSLs" task like this:

    scm {
      git {
        remote {
          name('origin')
          url('git://github.com/quidryan/aws-sdk-test.git')
        }
        extensions {
          cloneOptions {
            shallow()
            noTags()
          }
        }
      }
    }
    triggers {
        scm('H/15 * * * *')
    }
    steps {
        maven('-e clean test')
    }
}

@daspilker daspilker merged commit 08c995a into jenkinsci:master May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants