Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/git no tags #1029

Merged
merged 2 commits into from
May 9, 2017
Merged

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