Skip to content

Commit

Permalink
Revert "set branch evn variables for PR check Jenkinsfile (#1087)"
Browse files Browse the repository at this point in the history
This reverts commit 2fd3249.
  • Loading branch information
jstastny-cz committed Sep 19, 2023
1 parent 2fd3249 commit de0ca2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion dsl/scripts/pr_check.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ String getBuildChainCommandline() {
// Those can be overriden in Jenkinsfiles
String buildChainProject = env.BUILDCHAIN_PROJECT ?: CHANGE_REPO
String buildChainConfigRepo = env.BUILDCHAIN_CONFIG_REPO ?: 'incubator-kie-kogito-pipelines'
String buildChainConfigBranch = env.BUILDCHAIN_CONFIG_BRANCH ?: '\${GENERATION_BRANCH:main}'
String buildChainConfigBranch = env.BUILDCHAIN_CONFIG_BRANCH ?: '\${BRANCH:main}'
String buildChainConfigGitAuthor = env.BUILDCHAIN_CONFIG_AUTHOR ?: '\${AUTHOR:apache}'
String buildChainConfigDefinitionFilePath = env.BUILDCHAIN_CONFIG_FILE_PATH ?: '.ci/pull-request-config.yaml'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,6 @@ class KogitoJobTemplate {
buildOriginPRMerge(true)
}
}
properties { """
BRANCH=${Utils.getGitMainBranch(script)}
GENERATION_BRANCH=${Utils.getGenerationBranch(script)}
"""
}
orphanedItemStrategy {
discardOldItems {
daysToKeep(10)
Expand Down

0 comments on commit de0ca2b

Please sign in to comment.