Skip to content
Snippets Groups Projects
Commit 6dc18943 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] bamboo: Have cgl check in preparation stage

The cgl check is quick and fails rather often for pre-merge
test runs in the beginning. Move the job to preparation stage
for quicker test runs in those cases.

Change-Id: Id73f93212d12e47fb2897893c2ea518aa6900888
Resolves: #81683
Releases: master
Reviewed-on: https://review.typo3.org/53313


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 3977280b
No related merge requests found
......@@ -68,30 +68,17 @@ public class PreMergeSpec extends AbstractCoreSpec {
ArrayList<Job> jobsPreparationStage = new ArrayList<Job>();
// Label task
Job jobLabel = new Job("Create build labels", new BambooKey("CLFB"))
jobsPreparationStage.add(new Job("Create build labels", new BambooKey("CLFB"))
.description("Create changeId and patch set labels from variable access and parsing result of a dummy task")
.tasks(
new ScriptTask()
.interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
.inlineBody("echo \"I'm just here for the labels!\"")
);
jobsPreparationStage.add(jobLabel);
jobsPreparationStage.add(this.getJobComposerValidate());
Stage stagePreparation = new Stage("Preparation")
.jobs(jobsPreparationStage.toArray(new Job[jobsPreparationStage.size()]));
// MAIN stage
ArrayList<Job> jobsMainStage = new ArrayList<Job>();
jobsMainStage.add(this.getJobAcceptanceTestInstallMysql(this.getRequirementPhpVersion70Or71(), "PHP7071"));
jobsMainStage.addAll(this.getJobsAcceptanceTestsMysql(this.numberOfAcceptanceTestJobs, this.getRequirementPhpVersion70Or71(), "PHP7071"));
)
);
// CGL check last commit
jobsMainStage.add(new Job("Integration CGL", new BambooKey("CGLCHECK"))
jobsPreparationStage.add(new Job("Integration CGL", new BambooKey("CGLCHECK"))
.description("Check coding guidelines by executing Build/Scripts/cglFixMyCommit.sh script")
.tasks(
this.getTaskGitCloneRepository(),
......@@ -112,6 +99,19 @@ public class PreMergeSpec extends AbstractCoreSpec {
)
);
jobsPreparationStage.add(this.getJobComposerValidate());
Stage stagePreparation = new Stage("Preparation")
.jobs(jobsPreparationStage.toArray(new Job[jobsPreparationStage.size()]));
// MAIN stage
ArrayList<Job> jobsMainStage = new ArrayList<Job>();
jobsMainStage.add(this.getJobAcceptanceTestInstallMysql(this.getRequirementPhpVersion70Or71(), "PHP7071"));
jobsMainStage.addAll(this.getJobsAcceptanceTestsMysql(this.numberOfAcceptanceTestJobs, this.getRequirementPhpVersion70Or71(), "PHP7071"));
jobsMainStage.add(this.getJobIntegrationVarious());
jobsMainStage.addAll(this.getJobsFunctionalTestsMysql(this.numberOfFunctionalMysqlJobs, this.getRequirementPhpVersion70Or71(), "PHP7071"));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment