I am trying to create nested tabs with a Jenkins Job DSL Groovy script. It creates them, but I can find no way to set the "Default subview" in the DSL API. It does not appear to display the tabs correctly until I do this. Once I manually, change that default, it displays correctly. Here is the code:
nestedView(viewName) {
views {
listView("Builds (Staging)") {
jobs {
name(buildJobName)
}
columns {
status()
weather()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}
listView("Deployments (Staging)") {
jobs {
name(deployJobName)
}
columns {
status()
weather()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}
}
}
Corrected view after manually changing Default subview in Edit View