Commit Graph

243 Commits

Author SHA1 Message Date
孙振宇
ab424b3d65 fix(caching): optimize npm and yarn installation commands to prefer offline cache usage
Signed-off-by: 孙振宇 <>
2025-02-07 17:19:14 +08:00
孙振宇
81b3095925 fix(caching): remove redundant logging and streamline cache existence checks for npm and yarn installations
Signed-off-by: 孙振宇 <>
2025-02-07 17:14:11 +08:00
孙振宇
d6e3008c6e fix(caching): add logging for cache restoration in npm and yarn installations
Signed-off-by: 孙振宇 <>
2025-02-07 17:13:33 +08:00
孙振宇
6810be5cd8 fix(lint): improve caching logic for npm and yarn installations and ensure ESLint config is a JS file
Signed-off-by: 孙振宇 <>
2025-02-07 17:10:18 +08:00
孙振宇
39cb4fc56a refactor(lint): migrate ESLint configuration from JSON to JS format and update related references
Signed-off-by: 孙振宇 <>
2025-02-07 17:02:11 +08:00
孙振宇
f9d10df52d fix(lint): enhance ESLint configuration handling and improve caching for npm and yarn
Signed-off-by: 孙振宇 <>
2025-02-07 16:53:17 +08:00
孙振宇
bdb5d7e1a5 refactor(lint): replace ESLint configuration with a new JSON format
Signed-off-by: 孙振宇 <>
2025-02-07 16:40:46 +08:00
孙振宇
c6c47d8785 fix(lint): change npm install command to install eslint dependencies globally
Signed-off-by: 孙振宇 <>
2025-02-07 16:30:27 +08:00
孙振宇
b2eaf0481c fix(lint): comment out npm install command in ESLint class
Signed-off-by: 孙振宇 <>
2025-02-07 16:21:26 +08:00
孙振宇
5a718aa45d fix(lint): wrap linting commands in workspace directory context
Signed-off-by: 孙振宇 <>
2025-02-07 16:16:43 +08:00
孙振宇
9352de5270 fix(pipeline): update SourceFetcher to use dynamic git credentials ID
Signed-off-by: 孙振宇 <>
2025-02-07 15:57:10 +08:00
孙振宇
044f96d525 fix(pipeline): update SourceFetcher to use dynamic git credentials ID
Signed-off-by: 孙振宇 <>
2025-02-07 15:44:52 +08:00
孙振宇
aad8742710 fix(lint): declare deps variable with 'def' in ESLint class
Signed-off-by: 孙振宇 <>
2025-02-07 15:24:29 +08:00
孙振宇
88d867faa7 feat(SAST): import Bandit scanner in SASTExecutor
Signed-off-by: 孙振宇 <>
2025-02-07 15:23:46 +08:00
孙振宇
4a94ec60d9 feat(pipeline): add SemanticReleasingExecutor import to executeFreeleapsPipeline
Signed-off-by: 孙振宇 <>
2025-02-07 15:22:40 +08:00
孙振宇
ccffb811f4 fix(pipeline): correct syntax in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-07 15:21:33 +08:00
孙振宇
6a92bb3cdc fix(tests): add missing commas in buildArtifacts definitions in Jenkinsfile
Signed-off-by: 孙振宇 <>
2025-02-07 15:20:06 +08:00
孙振宇
38bfc418c4 feat(pipeline): add Bandit SAST scanner and enhance linting configurations
Signed-off-by: 孙振宇 <>
2025-02-07 15:18:40 +08:00
孙振宇
18f4ae6f9a refactor(executeFreeleapsPipeline): update linter check to use component.linter instead of variable
Signed-off-by: 孙振宇 <>
2025-02-05 16:33:51 +08:00
孙振宇
69eaed1c6a feat(pipeline): implement SAST and linting executors with configuration handling
Signed-off-by: 孙振宇 <>
2025-02-05 16:29:52 +08:00
孙振宇
425b7014fa refactor(executeFreeleapsPipeline): change agentContainer to use container function for dep-resolver
Signed-off-by: 孙振宇 <>
2025-02-04 15:49:33 +08:00
孙振宇
62cec3adef refactor(executeFreeleapsPipeline): update dep-resolver container command to log Node.js and npm versions
Signed-off-by: 孙振宇 <>
2025-02-04 15:47:02 +08:00
孙振宇
3dfb8dd8c4 refactor(executeFreeleapsPipeline): update command in dep-resolver to log Node.js and npm versions
Signed-off-by: 孙振宇 <>
2025-02-04 15:41:05 +08:00
孙振宇
dd47e5f6c1 refactor(executeFreeleapsPipeline): update language parsing to use component.language instead of configurations.serviceLang
Signed-off-by: 孙振宇 <>
2025-02-04 15:34:54 +08:00
孙振宇
794af6779b refactor(executeFreeleapsPipeline): update build agent images to use docker.io and log environment variables in DependenciesResolver
Signed-off-by: 孙振宇 <>
2025-02-04 15:33:07 +08:00
孙振宇
992daf0683 refactor(executeFreeleapsPipeline): log Node.js version in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 15:26:21 +08:00
孙振宇
4855f5dc22 refactor(executeFreeleapsPipeline): simplify error handling in generateComponentStages function and log Node.js version
Signed-off-by: 孙振宇 <>
2025-02-04 15:25:40 +08:00
孙振宇
fb76a7ea2b refactor(executeFreeleapsPipeline): move 'step' block inside 'script' for improved structure in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 15:22:59 +08:00
孙振宇
5d290bd698 refactor(executeFreeleapsPipeline): change 'steps' to 'step' for consistency in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 15:18:37 +08:00
孙振宇
296d49f95c refactor(executeFreeleapsPipeline): restructure generateComponentStages to improve error handling and encapsulate steps within a script block
Signed-off-by: 孙振宇 <>
2025-02-04 15:16:36 +08:00
孙振宇
891d594ff1 refactor(executeFreeleapsPipeline): streamline error handling in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 15:11:28 +08:00
孙振宇
8aaa271fe2 refactor(DependenciesResolver): add getNodeVersion method to log current Node.js version
Signed-off-by: 孙振宇 <>
2025-02-04 15:06:45 +08:00
孙振宇
2725cd823d refactor(executeFreeleapsPipeline): update build agent image to 'node:lts' and improve error handling in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 15:05:19 +08:00
孙振宇
43dbb2b7cd refactor(executeFreeleapsPipeline): update generateComponentStages to accept configurations and improve build agent image handling
Signed-off-by: 孙振宇 <>
2025-02-04 14:59:41 +08:00
孙振宇
a3e3788ee1 refactor(executeFreeleapsPipeline): enhance stage definitions with podTemplate for build agent and dependencies resolver
Signed-off-by: 孙振宇 <>
2025-02-04 14:55:48 +08:00
孙振宇
9cb3ea18f6 refactor(executeFreeleapsPipeline): add steps blocks to generated stages for improved structure and execution
Signed-off-by: 孙振宇 <>
2025-02-04 14:50:08 +08:00
孙振宇
d668944ef9 refactor(executeFreeleapsPipeline): remove unnecessary steps blocks in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 14:45:02 +08:00
孙振宇
32759dffb3 refactor(executeFreeleapsPipeline): fix formatting issue in generateComponentStages function
Signed-off-by: 孙振宇 <>
2025-02-04 14:43:16 +08:00
孙振宇
bbe1c48b28 refactor(executeFreeleapsPipeline): adjust generateComponentStages to improve formatting of stage definitions
Signed-off-by: 孙振宇 <>
2025-02-04 14:42:41 +08:00
孙振宇
7411c2a8c2 refactor(executeFreeleapsPipeline): modify generateComponentStages to return an array of stages for improved structure
Signed-off-by: 孙振宇 <>
2025-02-04 14:41:42 +08:00
孙振宇
908735112a refactor(executeFreeleapsPipeline): extract component stages into a separate function for improved readability and structure
Signed-off-by: 孙振宇 <>
2025-02-04 14:38:58 +08:00
孙振宇
79c9c845b0 refactor(executeFreeleapsPipeline): rename 'steps' back to 'stages' for consistency in pipeline structure
Signed-off-by: 孙振宇 <>
2025-02-04 14:29:43 +08:00
孙振宇
f8d099d274 refactor(executeFreeleapsPipeline): rename 'stages' back to 'steps' for consistency in pipeline structure
Signed-off-by: 孙振宇 <>
2025-02-04 14:09:49 +08:00
孙振宇
b9d804b0c0 refactor(executeFreeleapsPipeline): move build agent image logic into steps block for improved structure
Signed-off-by: 孙振宇 <>
2025-02-04 13:53:11 +08:00
孙振宇
8d8cf33b1a refactor(executeFreeleapsPipeline): rename 'steps' to 'stages' for improved clarity in pipeline structure
Signed-off-by: 孙振宇 <>
2025-02-04 13:50:02 +08:00
孙振宇
1f25eb7b08 refactor(executeFreeleapsPipeline): move execution logic into script block for better structure
Signed-off-by: 孙振宇 <>
2025-02-04 13:25:47 +08:00
孙振宇
a021dc59ca refactor(executeFreeleapsPipeline): replace cat command with sleep for improved container behavior
Signed-off-by: 孙振宇 <>
2025-02-04 13:22:34 +08:00
孙振宇
411504fa7d refactor(executeFreeleapsPipeline): format YAML structure for better readability
Signed-off-by: 孙振宇 <>
2025-02-04 13:19:31 +08:00
孙振宇
4e763f14af refactor(executeFreeleapsPipeline): add log statement for build agent image in execution stage
Signed-off-by: 孙振宇 <>
2025-02-04 13:16:26 +08:00
孙振宇
dced64a280 refactor(executeFreeleapsPipeline): move log statement for build agent image to correct position
Signed-off-by: 孙振宇 <>
2025-02-04 13:14:02 +08:00