Skip to content

Commit

Permalink
ci: fix the ubuntu machine executor for JDBC repository tests [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
phiz71 committed Jan 15, 2025
1 parent defa889 commit 679a755
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .circleci/ci/src/executors/executor-ubuntu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ import { Executor } from '@circleci/circleci-config-sdk/dist/src/lib/Components/
import { MachineResourceClass } from '@circleci/circleci-config-sdk/dist/src/lib/Components/Executors/types/MachineExecutor.types';

export class UbuntuExecutor {
public static create(resource: MachineResourceClass = 'medium', useDockerLayerCaching: boolean = false): Executor {
const image = `ubuntu-${config.executor.ubuntu.version}:${config.executor.ubuntu.tag}`;
public static create(
resource: MachineResourceClass = 'medium',
useDockerLayerCaching: boolean = false,
imageTag: string = config.executor.ubuntu.tag,
): Executor {
const image = `ubuntu-${config.executor.ubuntu.version}:${imageTag}`;
return new executors.MachineExecutor(resource, image, useDockerLayerCaching);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class JdbcTestContainerJob extends AbstractTestContainerJob {
command: `cd gravitee-apim-repository
mvn -pl 'gravitee-apim-repository-jdbc' -am -s ../${config.maven.settingsFile} clean package --no-transfer-progress -Dskip.validation=true -DjdbcType=<< parameters.jdbcType>> -T 2C`,
}),
UbuntuExecutor.create('medium', true),
UbuntuExecutor.create('medium', true, '2024.08.1'),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
default: ""
description: "Type and version of the database to test. Example: mariadb:10.5"
machine:
image: ubuntu-2204:current
image: ubuntu-2204:2024.08.1
docker_layer_caching: true
resource_class: medium
steps:
Expand Down

0 comments on commit 679a755

Please sign in to comment.