updating groovy library class name for new jenkins
Change-Id: Ia5b3c26a5cf1fe723060d2861c3c8ac1d2ac8654
diff --git a/Jenkinsfile.newBuildSystem b/Jenkinsfile.newBuildSystem
index 0b09d32..538cd56 100644
--- a/Jenkinsfile.newBuildSystem
+++ b/Jenkinsfile.newBuildSystem
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-import groovy.json.JsonSlurperClassic
+import groovy.json.JsonSlurper
def filename = 'manifest-${branch}.xml'
def manifestUrl = 'https://gerrit.opencord.org/manifest'
@@ -393,7 +393,7 @@
computeNamesAll = runHeadNodeCmd("cord prov list | grep node | awk '{print \\\$2}' | sed -e \\\"s/.*/'&'/\\\"").trim()
computeNamesAll = "${computeNamesAll}".split()
computeNamesAll = "${computeNamesAll}".replaceAll("'", "\"")
- computeNamesAll = new JsonSlurperClassic().parseText("${computeNamesAll}")
+ computeNamesAll = new JsonSlurper().parseText("${computeNamesAll}")
if ("${role}" == "") return computeNamesAll
computeNames = []
switchMac = ""
@@ -413,7 +413,7 @@
return computeNames
}
computeFabricIps = "${computeFabricIps}".split()
- computeFabricIps = new JsonSlurperClassic().parseText("${computeFabricIps}")
+ computeFabricIps = new JsonSlurper().parseText("${computeFabricIps}")
// Figure out which compute node connects to the switch
for (name in computeNamesAll) {
fabricIp = runComputeNodeCmd("${name}", "ip a | grep -o '${fabricIpPrefix}.[1-9][0-9]*.[0-9]*'").trim()
@@ -466,3 +466,4 @@
}
}
}
+