Н
Size: a a a
Н
DS
def config = readYaml file: './config.yaml'Но не могу
jobDsl scriptText: """pipelineJob('test') {
definition {
cps {
script('node {println \"hello\"}')
sandbox()
}
}
}"""
jobDsl scriptText: """pipelineJob('test') {
def config = readYaml file: './config.yaml'
definition {
cps {
script('node {println \"hello\"}')
sandbox()
}
}
}"""
DS
jobDsl targets: 'seed.groovy'
HC
DS
DS
HC
HC
DS
HC
pipelineJob('seedJob') { ...
scriptPath('pipelines/common/seedJob.Jenkinsfile')
DS
DS
HC
HC
HC
jobDsl targets: "${SEED_JOBS_TARGETS}",
DS
DS
HC
DS
II
readYaml
— pipeline step, jobDsl
— pipeline step, pipelineJob
— "dsl step"; хоть и то и другое груви, но друг с другом они не пересекаются