Skip to content

Commit

Permalink
ref(15): Start testing wild integration with Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanjerome committed Aug 19, 2023
1 parent 71acbf9 commit 2856819
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions vars/ContainerConfig.groovy
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
class ContainerConfig {

static Map getContainerConfig(selectedContainerNames = null) {
def wildPath = getContext(hudson.FilePath) + "./wild-workdir"
def appConfig = readYaml(file: "${wildPath}/config/containers-config.yaml")
node {
def wildPath = getContext(hudson.FilePath) + "./wild-workdir"
def appConfig = readYaml(file: "${wildPath}/config/containers-config.yaml")

if (selectedContainerNames) {
appConfig.container = appConfig.container.findAll { container ->
selectedContainerNames.contains(container.name)
if (selectedContainerNames) {
appConfig.container = appConfig.container.findAll { container ->
selectedContainerNames.contains(container.name)
}
}
}

return appConfig
return appConfig
}
}

static String generateContainerTemplate(Map appConfig) {
Expand Down

0 comments on commit 2856819

Please sign in to comment.