We use JCaSC and define piplines in jobs.yaml as follows:
jobs:
- script: >
pipelineJob('one-build') {
definition {
cpsScmFlowDefinition {
scm {
filesystem {
path('/var/lib/jenkins/jcasc_configs/pipelines')
clearWorkspace(true)
copyHidden(false)
filterSettings {
includeFilter(false)
}
}
}
scriptPath('one-build.jenkinsfile')
}
}
}
Which works just fine except for one thing.
The pipeline is missing all parameters and we first need to run Build now
only then the pipeline is seeded and we can run Build with parameters
.
What do we do wrong? Thanks.