Bug 1561 correction 61/11661/1
authorMark Beierl <mark.beierl@canonical.com>
Thu, 10 Feb 2022 15:12:40 +0000 (10:12 -0500)
committerMark Beierl <mark.beierl@canonical.com>
Thu, 10 Feb 2022 15:12:40 +0000 (10:12 -0500)
Adjust the method of creating the map for the SSH remote target
as the previous syntax did not provide the intended results.

Change-Id: I448c8b362a6caf2779f0a032ee84f838593d2374
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index 83671d1..e8e6d25 100644 (file)
@@ -453,15 +453,15 @@ node("${params.NODE}") {
                         repo_base_url = "-u http://${NODE_IP_ADDRESS}:${repo_port}"
                     }
 
-                    remote.with {
-                        name = containerName
-                        host = IP_ADDRESS
-                        user = 'ubuntu'
-                        identityFile = SSH_KEY
-                        allowAnyHosts = true
-                        logLevel = 'INFO'
-                        pty = true
-                    }
+                    remote = [
+                        name: containerName,
+                        host: IP_ADDRESS,
+                        user: 'ubuntu',
+                        identityFile: SSH_KEY,
+                        allowAnyHosts: true,
+                        logLevel: 'INFO',
+                        pty: true
+                    ]
 
                     // Force time sync to avoid clock drift and invalid certificates
                     sshCommand remote: remote, command: '''