25 lines
842 B
Groovy
25 lines
842 B
Groovy
import com.meesho.stages.helmGenerator
|
|
import com.meesho.stages.validateBuTeam
|
|
|
|
def call(Map params) {
|
|
podTemplate(yaml: libraryResource("org/meesho/${env.INFRA_ENV}-pod.yaml")) {
|
|
node(POD_LABEL) {
|
|
container('devops-tools') {
|
|
timestamps {
|
|
ansiColor('xterm') {
|
|
env.GITHUB_CRED = 'svc-devops-meesho'
|
|
// Initialize objects
|
|
def validateObj = new validateBuTeam()
|
|
def hemlGenObj = new helmGenerator()
|
|
|
|
// validate parameters
|
|
validateObj.run(params.bu, params.team, params.module)
|
|
// Create helm file
|
|
hemlGenObj.run(params)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|