-
New Feature
-
Resolution: Unresolved
-
Major
By default a branch project will automatically run the first build, with no parameters, so params will just pick up any default values. You have the option to suppress the automatic first build, but this does not give you any way to enter parameters for it (at least in the UI; perhaps possible via CLI/REST), since Jenkins does not know what the parameters are going to be until it starts running. But in the case of Declarative we could in principle inspect the Jenkinsfile when the branch project is created (via SCMFileSystem) and determine the parameter definitions by static parsing without actually running.
More generally, if Declarative is in use and there are properties, we could set all the project properties when the branch project is created, even if the first build is run automatically. (Though I would suggest that the automatic first build should be automatically suppressed if there is a ParametersDefinitionProperty.)
- duplicates
-
JENKINS-50365 Reload pipeline script without executing the job
-
- Reopened
-
- is duplicated by
-
JENKINS-40574 Pipeline build parameters are null in first build
-
- Resolved
-
-
JENKINS-68106 Multi-Branch Pipeline tool installs fails frequently on branches
-
- Closed
-
-
JENKINS-46594 Pipelines with parameters always fail to pick up parameters on first run
-
- Closed
-
-
JENKINS-40241 Detemine parameters before running job
-
- Closed
-
-
JENKINS-45454 Pipeline from SCM jobs should have a fetch option
-
- Resolved
-
- is related to
-
JENKINS-52939 Need to lint pipeline from UI, and also parse parameters
-
- Open
-
- relates to
-
JENKINS-41865 buildWithParameters does not work when project has not been built before parameters configured
-
- Open
-
-
JENKINS-49079 Copy job properties for new branch project from base/default branch
-
- Open
-
- links to
[JENKINS-41929] Offer "Build with Parameters" on first build when declarative Jenkinsfile found
Link | New: This issue relates to JENKINS-41865 [ JENKINS-41865 ] |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is duplicated by |
Link |
Original:
This issue is duplicated by |
Link |
New:
This issue duplicates |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is duplicated by |
Comment |
[ Parameters prompting is also skipped when you simply run a declarative pipeline (that contains a parameters block) from the classic UI. Since everything else about Declarative Pipelines seems to work in Classic UI, I'm thinking this is a bug. Perhaps the two are related since "Scan Multibranch Pipeline Now" is only available on Classic UI ? ] |
Remote Link | New: This issue links to "CloudBees Internal OSS-2277 (Web Link)" [ 18360 ] |