Pipeline missing parameters until first BuildNow

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.

This is documented behaviour. Job must run once to set the parameters.

It has been filed at [JENKINS-41929] Offer “Build with Parameters” on first build when declarative Jenkinsfile found - Jenkins Jira.

Thank you for the explanation. :+1: