Skip to content

Commit

Permalink
KOGITO-9671 DSL config: Remove bot account (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste authored Aug 2, 2023
1 parent ea01e8a commit 563d233
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions docs/jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ git:
name: radtriste
credentials_id: radtriste
token_credentials_id: radtriste-gh-token
bot_author:
name: radtriste-bot-account
credentials_id: radtriste-bot
jenkins_config_path: .ci/jenkins

# Full repository Example
Expand All @@ -176,9 +173,6 @@ git:
# name: another_gh_author
# credentials_id: another_gh_author_creds
# token_credentials_id: another_gh_author_creds_token
# bot_author:
# name: another_gh_bot_author
# credentials_id: another_gh_bot_author_creds
# jenkins_config_path: .ci/jenkins/

maven:
Expand Down
1 change: 0 additions & 1 deletion docs/release pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ In order to test the full Release Pipeline, and in order to avoid any problem, y

* Have a specific container registry and credentials registered with `push` rights on it
* Have a specific author repository that you can test against
* If you don't want to flood your test author repository with temporary branches, you should use also another author, referred as "bot account", and that you can setup in environment variables `BOT_*`
* Have a specific Maven repository to deploy jar artifacts
* Create all the required Jenkins jobs (see [Jenkins doc](./jenkins.md))

Expand Down
3 changes: 0 additions & 3 deletions dsl/config/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ git:
name: kiegroup
credentials_id: kie-ci3
token_credentials_id: kie-ci3-token
bot_author:
name: bsig-gh-bot
credentials_id: bsig-gh-bot
fork_author:
name: kie-ci
credentials_id: kie-ci
Expand Down
4 changes: 0 additions & 4 deletions dsl/seed/jenkinsfiles/Jenkinsfile.seed.branch
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,6 @@ def getRepoConfig(String repository, String generationBranch = "${GENERATION_BRA
cfg.git.author.credentials_id = repoConfig.author?.credentials_id ?: cfg.git.author.credentials_id
cfg.git.author.token_credentials_id = repoConfig.author?.credentials_id ?: cfg.git.author.token_credentials_id

cfg.git.bot_author = cfg.git.bot_author ?: [:]
cfg.git.bot_author.name = repoConfig.bot_author?.name ?: cfg.git.bot_author.name
cfg.git.bot_author.credentials_id = repoConfig.bot_author?.credentials_id ?: cfg.git.bot_author.credentials_id

String buildchainRepo = cfg.buildchain_config?.git?.repository
if (buildchainRepo) {
def buildchainRepoConfig = buildchainRepo == repository ? cfg : getRepoConfig(buildchainRepo, generationBranch)
Expand Down

0 comments on commit 563d233

Please sign in to comment.