Skip to content

Commit

Permalink
KOGITO-9671 CI: Remove bot account usage (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Aug 2, 2023
1 parent a50864e commit 89edffd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pipeline {
CONTAINER_ENGINE = 'docker'
CONTAINER_ENGINE_TLS_OPTIONS = ''

BOT_BRANCH_HASH = "${util.generateHash(10)}"
PR_BRANCH_HASH = "${util.generateHash(10)}"

IMAGE_BUILD_PLATFORMS = 'linux/amd64,linux/arm64'
}
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/Jenkinsfile.promote
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pipeline {
CONTAINER_ENGINE = 'podman'
CONTAINER_ENGINE_TLS_OPTIONS = '--tls-verify=false'

BOT_BRANCH_HASH = "${util.generateHash(10)}"
PR_BRANCH_HASH = "${util.generateHash(10)}"
GITHUB_REPO = "${REPO_NAME}" // for github-release cli
}

Expand Down Expand Up @@ -74,7 +74,7 @@ pipeline {

// Tag with `latest` tag if asked for as parameter
if (helper.isDeployLatestTag()) {
promoteImage(helper.getImageFullTag(imageName, baseImageParamsPrefix), helper.getImageFullTag(imageName, promoteImageParamsPrefix, 'latest'))
promoteImage(helper.getImageFullTag(imageName, baseImageParamsPrefix), helper.getImageFullTag(imageName, promoteImageParamsPrefix, 'latest'))
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/scripts/helper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ String getGitAuthorCredsID() {
}

String getPRBranch() {
return "${getProjectVersion()}-${env.BOT_BRANCH_HASH}"
return "${getProjectVersion()}-${env.PR_BRANCH_HASH}"
}

String getProjectVersion() {
Expand All @@ -268,7 +268,7 @@ String getNextVersion() {
}

String getSnapshotBranch() {
return "${getNextVersion()}-${env.BOT_BRANCH_HASH}"
return "${getNextVersion()}-${env.PR_BRANCH_HASH}"
}

boolean shouldLaunchTests() {
Expand Down

0 comments on commit 89edffd

Please sign in to comment.