JetBrains Space Help

Run Steps in Parallel or in Sequence

By default, a job runs steps sequentially one after another. To run them in parallel, use the parallel statement. To run steps sequentially inside the parallel block, use sequential :

job("Build and run tests") { container("gradle:6.1.1-jre11") { kotlinScript { api -> api.gradle("build", "-x", "test") } } parallel { container("gradle:6.1.1-jre11") { kotlinScript { api -> api.gradle("mainTests") } } sequential { container("gradle:6.1.1-jre11") { kotlinScript { api -> api.gradle("generateTestData") } } container("gradle:6.1.1-jre11") { kotlinScript { api -> api.gradle("integrationTests") } } } } }
Last modified: 26 November 2020