Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 9a59e7d

Browse files
authored
Merge pull request #120 from chilianyi/v3.5.0
Add build user var step
2 parents 7ad3ab3 + fdcc249 commit 9a59e7d

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

charts/ks-devops/templates/cluster-step-templates.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,4 +909,27 @@ spec:
909909
}`}}
910910
911911
---
912-
912+
apiVersion: devops.kubesphere.io/v1alpha3
913+
kind: ClusterStepTemplate
914+
metadata:
915+
name: wrap
916+
labels:
917+
step.devops.kubesphere.io/category: "General"
918+
annotations:
919+
devops.kubesphere.io/displayNameZH: "用户信息"
920+
devops.kubesphere.io/descriptionZH: "提供构建用户的环境变量,包括:BUILD_USER、BUILD_USER_ID 等"
921+
devops.kubesphere.io/displayNameEN: "User Vars"
922+
devops.kubesphere.io/descriptionEN: "Provide build user environment variables, including: BUILD_USER, BUILD_USER_ID, etc."
923+
step.devops.kubesphere.io/icon: "key"
924+
spec:
925+
runtime: dsl
926+
template: |
927+
{
928+
"arguments": {
929+
"isLiteral": false,
930+
"value": "${[$class: 'BuildUser']}"
931+
},
932+
"children": [],
933+
"name": "wrap"
934+
}
935+
---

0 commit comments

Comments
 (0)