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

JENKINS-61870 Shallow clone UI tweaks #869

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ f.entry(field:"noTags") {
f.entry(field:"honorRefspec") {
f.checkbox(title:_("Honor refspec on initial clone"))
}
f.entry(field:"shallow") {
f.checkbox(title:_("Shallow clone"))
}
f.entry(field:"depth") {
f.number(clazz:"number", min:1, step:1)
}

f.entry(title:_("Path of the reference repo to use during clone"), field:"reference") {
f.textbox()
}
f.entry(title:_("Timeout (in minutes) for clone and fetch operations"), field:"timeout") {
f.number(clazz:"number", min:1, step:1)
}

f.optionalBlock(title:_("Shallow clone"), field:"shallow", inline: true) {
f.entry(title:_("Shallow clone depth"), field:"depth") {
f.number(clazz:"number", min:1, step:1)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ f.entry(field:"trackingSubmodules") {
f.entry(field:"parentCredentials") {
f.checkbox(title:_("Use credentials from default remote of parent repository"))
}
f.entry(field:"shallow") {
f.checkbox(title:_("Shallow clone"))
}
f.entry(title:_("Shallow clone depth"), field:"depth") {
f.number(clazz:"number", min:1, step:1)
}

f.entry(title:_("Path of the reference repo to use during submodule update"), field:"reference") {
f.textbox()
}
Expand All @@ -30,6 +25,12 @@ f.entry(title:_("Number of threads to use when updating submodules"), field:"thr
f.number(clazz:"number", min:1, step:1)
}

f.optionalBlock(title:_("Shallow clone"), field:"shallow", inline: true) {
f.entry(title:_("Shallow clone depth"), field:"depth") {
f.number(clazz:"number", min:1, step:1)
}
}

/*
This needs more thought

Expand Down