-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: optimize system debug info details
- Loading branch information
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
life-helper-system/src/main/java/com/weutil/system/config/PipelineProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.weutil.system.config; | ||
|
||
import lombok.Data; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* 流水线信息 | ||
* | ||
* <h2>说明 | ||
* <p>CI/CD 阶段的流水线环境变量信息。 | ||
* | ||
* @author <a href="https://www.inlym.com">inlym</a> | ||
* @date 2024/12/11 | ||
* @see <a href="https://help.aliyun.com/zh/yunxiao/user-guide/environment-variables">环境变量</a> | ||
* @since 3.0.0 | ||
**/ | ||
@Component | ||
@ConfigurationProperties(prefix = "pipeline") | ||
@Data | ||
public class PipelineProperties { | ||
/** 流水线的运行编号,从1开始,按自然数自增 */ | ||
private String buildNumber; | ||
|
||
/** 本次部署代码版本的 commit ID */ | ||
private String commitSha; | ||
|
||
/** 本次部署代码版本的分支名或标签名 */ | ||
private String commitRefName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters