fix(commit_check)_: use proper base branch (#5700)
This commit is contained in:
parent
be9ba7604b
commit
dd443b030d
|
@ -60,6 +60,7 @@ pipeline {
|
|||
GOCACHE = "${WORKSPACE_TMP}/gocache"
|
||||
PATH = "${PATH}:${GOPATH}/bin"
|
||||
REPO_SRC = "${GOPATH}/src/github.com/status-im/status-go"
|
||||
BASE_BRANCH = "${env.CHANGE_TARGET}"
|
||||
|
||||
/* Hack-fix for params not being set in env on first job run. */
|
||||
UNIT_TEST_FAILFAST = "${params.UNIT_TEST_FAILFAST}"
|
||||
|
@ -94,6 +95,9 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('Commit') {
|
||||
environment {
|
||||
BASE_BRANCH = "${env.BASE_BRANCH}"
|
||||
}
|
||||
when { // https://github.com/status-im/status-go/issues/4993#issuecomment-2022685544
|
||||
expression { !isTestNightlyJob() }
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
parse_commits() {
|
||||
start_commit=${1:-origin/develop}
|
||||
start_commit=${1:-origin/${BASE_BRANCH}}
|
||||
end_commit=${2:-HEAD}
|
||||
is_breaking_change=false
|
||||
|
||||
|
@ -27,4 +27,4 @@ parse_commits() {
|
|||
echo "$is_breaking_change"
|
||||
}
|
||||
|
||||
parse_commits
|
||||
parse_commits "$@"
|
||||
|
|
Loading…
Reference in New Issue