Skip to content

Commit

Permalink
feat(apps/prod/jenkins-gitee): add lock-resource plugin and add cre…
Browse files Browse the repository at this point in the history
…d for github repos (#469)

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo authored Apr 18, 2023
1 parent a94157d commit 970ced9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
24 changes: 23 additions & 1 deletion apps/prod/jenkins-gitee/release/values-JCasC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ controller:
# 'name' and 'keyName' must be lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-',
# and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc')
additionalExistingSecrets:
# for git clone for private repo.
# for git clone for private repo in github.com
- { name: github, keyName: git-private-key }
- { name: github, keyName: git-username }
- { name: github, keyName: bot-token }

# for git clone for repos in gitee.com
- { name: gitee, keyName: git-private-key }
- { name: gitee, keyName: git-username }
- { name: gitee, keyName: bot-token }
Expand Down Expand Up @@ -112,6 +117,23 @@ controller:
description: gitee private token to call api.
scope: GLOBAL
secret: ${gitee-bot-token}
- domain:
name: github.com
description: github ssh and open api
credentials:
- basicSSHUserPrivateKey:
id: github-bot-ssh
privateKeySource:
directEntry:
privateKey: ${github-git-private-key}
scope: GLOBAL
username: ${github-git-username}
usernameSecret: true
- string:
id: github-bot-token
description: github private token to call api.
scope: GLOBAL
secret: ${github-bot-token}
# for jobs.
jobs-dsl: |
jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,15 @@ controller:
- artifactId: gitee
source:
# renovate: datasource=jenkins-plugins depName=gitee
version: 1.2.7
version: 1.2.7
- artifactId: ssh-agent
source:
# renovate: datasource=jenkins-plugins depName=ssh-agent
version: 327.v230ecd01f86f
version: 327.v230ecd01f86f
- artifactId: lockable-resources
source:
# renovate: datasource=jenkins-plugins depName=lockable-resources
version: 1141.v7c5f8f31d2ee

# for plugin build-failure-analyzer
# Exporting to prometheus
Expand Down

0 comments on commit 970ced9

Please sign in to comment.