String checkoutSeedConfigFile()

in dsl/seed/jenkinsfiles/scripts/utils.groovy [56:68]


String checkoutSeedConfigFile(config) {
    assert config.repository : "Read seed config: missing Git Repository. Please check the configuration: ${config}"
    assert config.author : "Read seed config: missing Git Author. Please check the configuration: ${config}"
    assert config.credentials : "Read seed config: missing Git Credentials. Please check the configuration: ${config}"
    assert config.branch : "Read seed config: missing Git Branch. Please check the configuration: ${config}"

    String dirName = "seed-${config.repository}-${config.author}-${config.branch}"
    dir(dirName) {
        deleteDir()
        checkout(githubscm.resolveRepository(config.repository, config.author, config.branch, false, config.credentials))
    }
    return dirName
}