Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,11 @@ pipeline {
stage('Init Params') {
steps {
script {
def desc = params.getOrDefault("desc", "TiFlash regression test")
def branch = params.getOrDefault("branch", "${REFS.base_ref ?: 'master'}")
def version = params.getOrDefault("version", "latest")
def targetBranch = params.getOrDefault("ghprbTargetBranch", "")

if (targetBranch != "") {
branch = targetBranch
}

if (branch in ["planner_refactory", "raft"]) {
branch = "master"
}
if (version == null || version.trim() == "") {
version = "latest"
}
def branch = (REFS.base_ref ?: "master").trim()
def version = "latest"
Comment thread
lybcodes marked this conversation as resolved.

env.TEST_BRANCH = "${branch}"
env.TEST_VERSION = "${version}"

currentBuild.description = "${desc} branch=${branch} version=${version}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,15 @@ pipeline {
stage('Init Params') {
steps {
script {
def desc = params.getOrDefault("desc", "TiFlash schrodinger test")
def branch = params.getOrDefault("branch", "${REFS.base_ref ?: 'master'}")
def version = params.getOrDefault("version", "latest")
def testcase = params.getOrDefault("testcase", "schrodinger/bank")
def maxRunTime = params.getOrDefault("maxRunTime", "120")
def targetBranch = params.getOrDefault("ghprbTargetBranch", "")

if (targetBranch != "") {
branch = targetBranch
}

if (branch in ["planner_refactory", "raft"]) {
branch = "master"
}
if (version == null || version.trim() == "") {
version = "latest"
}
if (testcase == null || testcase.trim() == "") {
testcase = "schrodinger/bank"
}
if (maxRunTime == null || maxRunTime.trim() == "") {
maxRunTime = "120"
}
def branch = (REFS.base_ref ?: "master").trim()
def version = "latest"
def testcase = "schrodinger/bank"
def maxRunTime = "120"
Comment thread
lybcodes marked this conversation as resolved.

env.TEST_BRANCH = "${branch}"
env.TEST_VERSION = "${version}"
env.TEST_CASE = "${testcase}"
env.TEST_MAX_RUNTIME = "${maxRunTime}"

currentBuild.description = "${desc} branch=${branch} version=${version} testcase=${testcase}"
}
}
}
Expand Down