Add lock to rest_api tests
@@ -106,6 +106,7 @@ for (n in ["Windows", "Linux"]) {
rest_builders["${the_node} Rest API Test"] = {
node(the_node){
stage("REST tests ${the_node}"){
+ lock('restApiTestsLock') {
def vars = checkout scm
def base_dir = (the_node == "Windows") ? win_tmp_base : rest_tmp_base
base_dir = base_dir + "rest" + vars["GIT_COMMIT"].substring(0, 4)
@@ -148,6 +149,7 @@ for (n in ["Windows", "Linux"]) {
}
}
}
+}
parallel rest_builders
