-
You can create a step template which contains steps 1-3. Then you can reuse these steps in two jobs with one job having the additional step 4.
Depending on how generic you can write step 1-3 the step template could also be created in a dedicated project and then you can import that project in builds of other projects.
-
Previous Value Current Value Open
Closed
-
Thank you, I'll try
-
Ended up with simple plugin to add more flexibility https://dev.finomen.net/onedev/conditional-build-step/~builds/8
-
Thanks for sharing 👍
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
Is is possible to run some build steps only on specific branch or based on parameters/properties? For example, build contains following steps:
I'd like to have step 4 executed only on master branch without copy-pasting whole build configuration.