Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you nest stages?

Say I want something like this:

  1. Sequential: stage "build", build-type agent.

  2. Sequential: stage "tests" (this is just a wrapper/container)

    2.1 Parallel: stage "integration tests #1", integration #1-type agent

    2.2 Parallel: stage "integration tests #2, integration #2-type agent

    2.3 Parallel: stage "deploy and functional tests" (this is just a wrapper/container)

       2.3.1 Sequential: stage "deploy", deploy-type agent

       2.3.2 Sequential: stage "functional tests", functional-type agent
Is it doable?



No, you can define jobs and stages. Stages run one after the others and all jobs inside the same stage will run in parallel, that's it, unless you start triggering remote jobs but then it becomes a lot let maintainable.


I don't have personal experience with this, but it seems to be that OP could have done this using their pipelines and maybe the graphs?

https://docs.gitlab.com/ee/ci/pipelines.html#pipeline-graphs


Yes, that should be doable but not quite how you have it sketched out. See here: https://docs.gitlab.com/ee/ci/pipelines.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: