#!groovy

node {
	def TIDB_OPERATOR_BRANCH = env.BRANCH_NAME
	def CREDENTIALS_ID="github-iamxy-ssh"
	fileLoader.withGit('git@github.com:pingcap/tidb-operator.git', TIDB_OPERATOR_BRANCH, CREDENTIALS_ID, '') {
		lib = fileLoader.load('ci/pingcap_tidb_operator.groovy')
		fileLoader.load('ci/pingcap_tidb_operator_branch_dind.groovy').call(lib, TIDB_OPERATOR_BRANCH, CREDENTIALS_ID)
	}
}
