Commit Graph

269 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
孙振宇
8a53c8413d refactor(DependenciesResolver): update workspace reference to use env.workspace
Signed-off-by: 孙振宇 <>
2025-02-04 13:10:01 +08:00
孙振宇
ea5f2c3a0a refactor(executeFreeleapsPipeline): move sourceFetcher instantiation to relevant steps
Signed-off-by: 孙振宇 <>
2025-02-04 13:07:52 +08:00
孙振宇
3728822500 refactor(executeFreeleapsPipeline): remove duplicate fetch call for configurations
Signed-off-by: 孙振宇 <>
2025-02-04 13:05:02 +08:00
孙振宇
2b8d69c163 refactor(DependenciesResolver): log workspace information and standardize workspace references
Signed-off-by: 孙振宇 <>
2025-02-04 13:02:40 +08:00
孙振宇
1723d23507 refactor(DependenciesResolver): remove unnecessary excludes from cache configuration
Signed-off-by: 孙振宇 <>
2025-02-04 12:57:33 +08:00
孙振宇
0a1607c0c0 refactor(executeFreeleapsPipeline): update dependencies resolution to use component instead of configurations
Signed-off-by: 孙振宇 <>
2025-02-04 12:52:27 +08:00
孙振宇
ecac540f1d refactor(Jenkinsfile): add trailing comma to npmPackageJsonFile for consistency
Signed-off-by: 孙振宇 <>
2025-02-04 12:50:00 +08:00
孙振宇
00063babb9 refactor(DependenciesResolver): pass workspace parameter to DependenciesResolver and update directory references
Signed-off-by: 孙振宇 <>
2025-02-04 12:48:46 +08:00
孙振宇
805b051c26 refactor(executeFreeleapsPipeline): clean up whitespace and formatting in the pipeline script
Signed-off-by: 孙振宇 <>
2025-02-04 12:40:44 +08:00
孙振宇
9bcd494018 refactor(executeFreeleapsPipeline): restore conditional execution for build and dependencies stages based on executeMode and changed components
Signed-off-by: 孙振宇 <>
2025-02-04 12:38:48 +08:00
孙振宇
37ccf1e6fd refactor(executeFreeleapsPipeline): comment out conditional execution for build and dependencies stages
Signed-off-by: 孙振宇 <>
2025-02-04 12:29:20 +08:00
孙振宇
60f7ab77d4 refactor(Jenkinsfile): update components definition syntax for consistency
Signed-off-by: 孙振宇 <>
2025-02-04 12:26:13 +08:00
孙振宇
d1df2377cb refactor(executeFreeleapsPipeline): add conditional execution for components build stage based on executeMode and changed components
Signed-off-by: 孙振宇 <>
2025-02-04 12:18:24 +08:00
孙振宇
d7ef1ee1f8 refactor(Jenkinsfile): update executeMode to 'fully' for clarity
Signed-off-by: 孙振宇 <>
2025-02-04 12:18:19 +08:00
孙振宇
a46e87ac1c refactor(ChangedComponentsDetector): update shell command execution to use steps.sh for consistency
Signed-off-by: 孙振宇 <>
2025-02-04 12:15:40 +08:00
孙振宇
aa7d449616 refactor(executeFreeleapsPipeline): improve code structure by adjusting stage block formatting
Signed-off-by: 孙振宇 <>
2025-02-04 12:13:41 +08:00
孙振宇
bc29cf3514 refactor(executeFreeleapsPipeline): streamline commit message linting logic and improve conditional checks
Signed-off-by: 孙振宇 <>
2025-02-04 12:11:42 +08:00
孙振宇
e574581d02 refactor(Jenkinsfile, executeFreeleapsPipeline): disable commit message linting and add fail-fast option for parallel execution
Signed-off-by: 孙振宇 <>
2025-02-04 12:08:52 +08:00
孙振宇
1fec9ad9d7 refactor(logging): update log statements to use consistent method calls for improved readability
Signed-off-by: 孙振宇 <>
2025-02-04 12:03:30 +08:00
孙振宇
4a2fe3b8a3 refactor(Jenkinsfile): clarify serviceGitRepoType comment for better understanding
Signed-off-by: 孙振宇 <>
2025-02-04 11:36:09 +08:00
孙振宇
ae77e64ac1 refactor(logging): enhance log messages to include plugin context for better clarity
Signed-off-by: 孙振宇 <>
2025-02-04 11:32:42 +08:00
孙振宇
682bbc5ef3 refactor(CommitMessageLinter, SourceFetcher): update workspace path configuration for consistency
Signed-off-by: 孙振宇 <>
2025-02-04 11:22:48 +08:00
孙振宇
d568c0e88c refactor(CommitMessageLinter): correct safe.directory path to use environment variable for workspace
Signed-off-by: 孙振宇 <>
2025-02-04 11:19:52 +08:00
孙振宇
54f242e65b refactor(CommitMessageLinter): update safe.directory configuration to use absolute workspace path
Signed-off-by: 孙振宇 <>
2025-02-04 11:18:05 +08:00
孙振宇
e33ac09e2a refactor(CommitMessageLinter): ensure workspace is a trusted git repository for commit linting
Signed-off-by: 孙振宇 <>
2025-02-04 11:15:00 +08:00
孙振宇
36ecc84249 refactor(CommitMessageLinter, log): update commit lint rules handling and improve logging
Signed-off-by: 孙振宇 <>
2025-02-04 11:11:46 +08:00
孙振宇
bd1aed3664 refactor(CommitMessageLinter, log): enhance logging with timestamps and improve log messages
Signed-off-by: 孙振宇 <>
2025-02-04 11:06:07 +08:00
孙振宇
67214e0120 refactor(SourceFetcher): update directory handling to use steps.dir for workspace
Signed-off-by: 孙振宇 <>
2025-02-04 11:02:16 +08:00
孙振宇
8c827fe1ad refactor(executeFreeleapsPipeline): update component handling to use component names
Signed-off-by: 孙振宇 <>
2025-02-04 11:00:33 +08:00
孙振宇
d6e86827ac refactor(executeFreeleapsPipeline): update closure handling to initialize configurations as a Map
Signed-off-by: 孙振宇 <>
2025-02-04 10:54:41 +08:00
孙振宇
5a63bf8d33 refactor(executeFreeleapsPipeline): change function signature to accept configurations as a Closure
Signed-off-by: 孙振宇 <>
2025-02-04 10:51:49 +08:00
孙振宇
faed86e4f8 refactor(executeFreeleapsPipeline): update function signature to accept configurations as a Map
Signed-off-by: 孙振宇 <>
2025-02-04 10:49:34 +08:00
孙振宇
37253e85b4 refactor(executeFreeleapsPipeline): update function signature to accept configurations directly
Signed-off-by: 孙振宇 <>
2025-02-04 10:40:41 +08:00
孙振宇
c84c65ce87 refactor(executeFreeleapsPipeline): streamline component build and dependency resolution stages
Signed-off-by: 孙振宇 <>
2025-02-04 10:36:58 +08:00
孙振宇
376fa19c78 refactor(ChangedComponentsDetector, CommitMessageLinter, DependenciesResolver, executeFreeleapsPipeline): standardize workspace handling in directory operations
Signed-off-by: 孙振宇 <>
2025-02-04 10:29:49 +08:00
孙振宇
adfc71ea22 refactor(SourceFetcher, ServiceLanguage, DependenciesResolver): improve workspace handling, standardize language naming, and streamline dependency resolution
Signed-off-by: 孙振宇 <>
2025-02-04 10:23:25 +08:00
孙振宇
2d925213e3 refactor(DependenciesResolver): update logging to use steps.log.info for consistency
Signed-off-by: 孙振宇 <>
2025-01-22 16:25:04 +08:00
孙振宇
89191746ef refactor(DependenciesResolver): replace echo with log.info for improved logging
refactor(executeFreeleapsPipeline): update commit message linting condition for clarity

Signed-off-by: 孙振宇 <>
2025-01-22 16:22:38 +08:00
孙振宇
48983cb777 refactor(tests): add library import for first-class-pipeline
Signed-off-by: 孙振宇 <>
2025-01-22 16:16:54 +08:00
孙振宇
8c544961b0 refactor(executeFreeleapsPipeline): standardize logging and update dependencies manager naming
Signed-off-by: 孙振宇 <>
2025-01-22 16:15:31 +08:00
孙振宇
a35a3ee8e1 refactor(executeFreeleapsPipeline): remove EnvironmentVars class and streamline variable injection
Signed-off-by: 孙振宇 <>
2025-01-22 16:10:48 +08:00
孙振宇
2412360de2 refactor(executeFreeleapsPipeline): add ServiceLanguage enum import for improved language handling
Signed-off-by: 孙振宇 <>
2025-01-22 16:07:46 +08:00
孙振宇
ef65343ddb refactor(executeFreeleapsPipeline): update language case handling to use ServiceLanguage enum
Signed-off-by: 孙振宇 <>
2025-01-22 16:06:22 +08:00
孙振宇
36dc0819b6 refactor(executeFreeleapsPipeline): update buildAgentImage handling and use environment variable
Signed-off-by: 孙振宇 <>
2025-01-22 16:05:08 +08:00
孙振宇
6bed306f2b refactor(executeFreeleapsPipeline): update buildAgentImage reference to use configurations
Signed-off-by: 孙振宇 <>
2025-01-22 16:01:27 +08:00
孙振宇
fb33de1847 refactor(SourceFetcher): remove echo statement from fetch method
Signed-off-by: 孙振宇 <>
2025-01-22 15:56:42 +08:00
孙振宇
4c6efe1c9d refactor(pipeline): rename executePipeline to executeFreeleapsPipeline and implement new pipeline structure
Signed-off-by: 孙振宇 <>
2025-01-22 15:53:25 +08:00
孙振宇
4666298ebe refactor(pipeline): replace pipelineCall with executePipeline and streamline configuration handling
Signed-off-by: 孙振宇 <>
2025-01-22 15:52:03 +08:00
孙振宇
2d2cf27318 refactor(DependenciesResolver, EnvironmentVars, SourceFetcher, pipelineCall): standardize configuration property names to camelCase
Signed-off-by: 孙振宇 <>
2025-01-22 15:42:56 +08:00
孙振宇
62fdc4c17a refactor(pipelineCall): simplify configuration handling and improve readability
Signed-off-by: 孙振宇 <>
2025-01-22 15:35:03 +08:00
孙振宇
b9caf1d04e feat(SourceFetcher): log configurations in fetch method for debugging
Signed-off-by: 孙振宇 <>
2025-01-22 15:26:07 +08:00
孙振宇
77bb34e425 fix(Jenkinsfile): update SERVICE_GIT_REPO with correct repository URL
Signed-off-by: 孙振宇 <>
2025-01-22 15:25:01 +08:00
孙振宇
fba93aac48 feat(pipeline): switch from Docker to Kubernetes for dependencies resolving stage
Signed-off-by: 孙振宇 <>
2025-01-21 17:40:42 +08:00
孙振宇
93325d5405 feat(DependenciesResolver): add import for DependenciesManager enum
Signed-off-by: 孙振宇 <>
2025-01-21 17:38:01 +08:00
孙振宇
c83759c61c fix(DependenciesResolver): add missing closing brace for class definition
Signed-off-by: 孙振宇 <>
2025-01-21 17:36:32 +08:00
孙振宇
4d4e2da565 refactor(DependenciesResolver): add return type definitions for caching methods
Signed-off-by: 孙振宇 <>
2025-01-21 17:02:41 +08:00
孙振宇
52d7f78fa6 feat(pipeline): implement environment variable injection and dependencies resolution
Signed-off-by: 孙振宇 <>
2025-01-21 17:01:31 +08:00
孙振宇
f88662b1e3 refactor(EnvironmentVars): streamline variable injection by removing redundant assignments
Signed-off-by: 孙振宇 <>
2025-01-20 10:51:32 +08:00
孙振宇
072ff4960a refactor(EnvironmentVars): log SERVICE_NAME during variable injection for debugging
Signed-off-by: 孙振宇 <>
2025-01-20 10:48:52 +08:00
孙振宇
dee6917fe5 feat(pipelineCall): inject environment variables from configurations
Signed-off-by: 孙振宇 <>
2025-01-20 10:37:59 +08:00
孙振宇
1d374fb5da refactor(ServiceLanguage): use enum reference in parse method for clarity
Signed-off-by: 孙振宇 <>
2025-01-20 10:21:06 +08:00
孙振宇
82adc49e86 refactor(ServiceLanguage): change parse method to static for improved accessibility
Signed-off-by: 孙振宇 <>
2025-01-20 10:20:13 +08:00
孙振宇
d5127b342b refactor(pipelineCall): remove unnecessary timestamps block for clarity
Signed-off-by: 孙振宇 <>
2025-01-20 10:13:10 +08:00
孙振宇
1b969d81a7 refactor(pipelineCall): replace 'scripts' block with 'script' for consistency
Signed-off-by: 孙振宇 <>
2025-01-20 10:12:26 +08:00
孙振宇
1896034cde fix(pipeline): change variable declarations from var to def for consistency
Signed-off-by: 孙振宇 <>
2025-01-17 17:16:56 +08:00
孙振宇
d37849f18b refactor(ServiceLanguage): remove unnecessary CompileStatic annotation
Signed-off-by: 孙振宇 <>
2025-01-17 17:15:25 +08:00
孙振宇
ed959561db chore(git): codes staging
Signed-off-by: 孙振宇 <>
2025-01-17 16:25:04 +08:00
孙振宇
b91d2192ba feat(k8s): add Jenkins certificate and Azure Blob Storage configuration
Signed-off-by: 孙振宇 <>
2025-01-16 17:00:31 +08:00
孙振宇
b1422e2913 chore(layout): project initialize and magicleaps manifests
Signed-off-by: 孙振宇 <>
2024-12-30 17:43:50 +08:00