diff --git a/pipelines/pingcap/tidb-test/latest/ghpr_integration_jdbc_test.groovy b/pipelines/pingcap/tidb-test/latest/ghpr_integration_jdbc_test.groovy index 8277d6caa..d200362e3 100644 --- a/pipelines/pingcap/tidb-test/latest/ghpr_integration_jdbc_test.groovy +++ b/pipelines/pingcap/tidb-test/latest/ghpr_integration_jdbc_test.groovy @@ -76,11 +76,6 @@ pipeline { """ } } - dir('tidb-test') { - cache(path: "./", filter: '**/*', key: "ws/tidb-test/rev-${REFS.pulls[0].sha}") { - sh "touch ws-${BUILD_TAG}" - } - } } } stage('JDBC Tests') { @@ -120,7 +115,7 @@ pipeline { } } dir('tidb-test') { - cache(path: "./", filter: '**/*', key: "ws/tidb-test/rev-${REFS.pulls[0].sha}") { + cache(path: "./", filter: '**/*', key: prow.getCacheKey('git', REFS)) { sh """ mkdir -p bin cp ${WORKSPACE}/tidb/bin/* bin/ && chmod +x bin/*