vsevolod | ljkimz, in documentation there is a section related to project/job parametrization: | 10:23 |
---|---|---|
vsevolod | - project: | 10:23 |
vsevolod | name: project-name | 10:23 |
vsevolod | pyver: | 10:23 |
vsevolod | - 26: | 10:23 |
vsevolod | branch_name: old_branch | 10:23 |
vsevolod | - 27: | 10:23 |
vsevolod | branch_name: new_branch | 10:23 |
vsevolod | jobs: | 10:23 |
vsevolod | - '{name}-{pyver}' | 10:24 |
vsevolod | Here, pyver could be your dev and prod environment | 10:24 |
vsevolod | And you can move it to defaults | 10:24 |
vsevolod | https://jenkins-job-builder.readthedocs.io/en/latest/definition.html#project-1 | 10:24 |
vsevolod | like | 10:24 |
vsevolod | defaults: | 10:24 |
vsevolod | defaults: | 10:25 |
vsevolod | name: global | 10:25 |
vsevolod | env: | 10:25 |
vsevolod | - name: prod | 10:25 |
vsevolod | my_config: prod-config | 10:25 |
vsevolod | - name: dev | 10:26 |
vsevolod | my_config: dev-config | 10:26 |
vsevolod | defaults: | 10:27 |
vsevolod | name: global | 10:27 |
vsevolod | env: | 10:27 |
vsevolod | - prod: | 10:27 |
vsevolod | my_config: prod-config | 10:27 |
vsevolod | - dev: | 10:27 |
vsevolod | my_config: dev-config | 10:27 |
vsevolod | project: | 10:27 |
vsevolod | jobs: | 10:27 |
vsevolod | name: some-project | 10:27 |
vsevolod | jobs: | 10:27 |
vsevolod | - project1-{env} | 10:27 |
vsevolod | Something like this should work | 10:28 |
vsevolod | all your env parameters could be put along with my_config | 10:29 |
vsevolod | into defaults | 10:29 |
vsevolod | defaults: | 10:29 |
vsevolod | name: global | 10:29 |
vsevolod | my_config_2: default-config-2 | 10:29 |
vsevolod | env: | 10:29 |
vsevolod | - prod: | 10:29 |
vsevolod | my_config_1: prod-config-1 | 10:29 |
vsevolod | my_config_2: prod-config-2 | 10:29 |
vsevolod | - dev: | 10:29 |
vsevolod | my_config_1: dev-config-1 | 10:29 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!