From bc87299e087367588a48d7a5bb8f9dd6a6e61753 Mon Sep 17 00:00:00 2001
From: Martin Hierholzer <martin.hierholzer@desy.de>
Date: Fri, 5 Oct 2018 09:59:47 +0200
Subject: [PATCH] added missing script{}

---
 vars/buildTestDeploy.groovy | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/vars/buildTestDeploy.groovy b/vars/buildTestDeploy.groovy
index b1a405e..6c46575 100644
--- a/vars/buildTestDeploy.groovy
+++ b/vars/buildTestDeploy.groovy
@@ -30,7 +30,9 @@ def call(ArrayList<String> dependencyList) {
     post {
       always {
         node('Docker') {
-          steps.doPublishBuildTestDeploy(builds)
+          script {
+            steps.doPublishBuildTestDeploy(builds)
+          }
         }
       } // end always
     } // end post
@@ -50,7 +52,9 @@ def transformIntoStep(ArrayList<String> dependencyList, String buildName) {
         // we need root access inside the container and access to the dummy pcie devices of the host
         def dockerArgs = "-u 0 --device=/dev/mtcadummys0 --device=/dev/mtcadummys1 --device=/dev/mtcadummys2 --device=/dev/mtcadummys3 --device=/dev/llrfdummys4 --device=/dev/noioctldummys5 --device=/dev/pcieunidummys6 -v /var/run/lock/mtcadummy:/var/run/lock/mtcadummy"
         docker.image("builder:${label}").inside(dockerArgs) {
-          steps.doBuildTestDeploy(dependencyList, label, buildType)
+          script {
+            steps.doBuildTestDeploy(dependencyList, label, buildType)
+          }
         }
       }
     }
-- 
GitLab