I just noticed that there is still an error:
Set-Variable: Cannot process command because of one or more missing
mandatory parameters: Name.
That is because in *Bash* (Linux) and *MS-DOS* (Windows), you can just type
set to get a list of all environment variables.
However, in *PowerShell
FullyQualifiedErrorId : InvalidEndOfLine
>>>>>
>>>>> Agent JVM has terminated. Exit code=1
>>>>> [02/09/21 10:21:02] Launch failed - cleaning up connection
>>>>> [02/09/21 10:21:02] [SSH] Connection closed.
>>>>> SSHLauncher{hos
>> SSHLauncher{host='ec2-3-123-229-137.eu-central-1.compute.amazonaws.com',
>>>> port=22, credentialsId='b56e65e1-beb0-4ad3-bcaa-e9c7aea3c4f8',
>>>> jvmOptions='', javaPath='', prefixStartSlaveCmd='',
>>>> suffixStartSlaveCmd='',
>>>> launchTim
unchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15,
>>> sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.ManuallyTrustedKeyVerificationStrategy,
>>> tcpNoDelay=true, trackCredentials=true}
>>> [02/09/21 10:21:02] [SSH] Opening SSH connection to
>>>
; [02/09/21 10:20:58] [SSH] Authentication successful.
>> [02/09/21 10:20:59] [SSH] The remote user's environment is:
>> Set-Variable : Cannot process command because of one or more missing
>> mandatory parameters: Name.
>> At line:1 char:1
>> + set
>
t; this host. Connection will be allowed.
> [02/09/21 10:20:58] [SSH] Authentication successful.
> [02/09/21 10:20:59] [SSH] The remote user's environment is:
> Set-Variable : Cannot process command because of one or more missing
> mandatory parameters: Name.
> At line:1 char:1
> + se
0:21:03] [SSH] The remote user's environment is:
Set-Variable : Cannot process command because of one or more missing
mandatory parameters: Name.
At line:1 char:1
+ set
+ ~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Variable],
ParameterBindingException
+ FullyQ