I have parallel steps (step1, step2) in one stage in the pipeline. So just curious whether I can start step2 with some delay after starting the step1.
I tried below and apparently not working as expected:
MySteps:
title: IT
stage: test
type: parallel
fail_fast: false
steps:
step1:
title: AppStart
stage: test
....
step2:
title: End point test
stage: prepare
delay: 4
exponentialFactor: 4
.....
Why do you need the delay? If you want step2 to run after step1 then you can simply mark step1 as a dependency and the Codefresh engine will automatically arrange them in the correct order.
Alternatively I would just add a “sleep 5” statement or something similar in step2. In order to wait.
However the whole point of using parallel steps is to speed up things. So waiting for something implies that true parallelism is not possible?
Thanks for your reply Kostis.
I totally understand your point. My requirement here though just for quick a test. Meaning bring up my spring boot application via Gradle in step1 and after sometime (after app up and running) run curl command in step2 to test one endpoint to see the application logs in step1.