<joblist>
<job>
<context>
<options preserveOrder='true'>
<option name='username' required='true' value='pi'>
<label>username</label>
</option>
</options>
</context>
<defaultTab>nodes</defaultTab>
<description></description>
<dispatch>
<excludePrecedence>true</excludePrecedence>
<keepgoing>false</keepgoing>
<rankOrder>ascending</rankOrder>
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter>
<threadcount>1</threadcount>
</dispatch>
<executionEnabled>true</executionEnabled>
<id>8b7b4feb-2bfe-45ee-9841-c7ef0a2f167c</id>
<loglevel>INFO</loglevel>
<name>test3</name>
<nodeFilterEditable>false</nodeFilterEditable>
<nodefilters>
<filter>name: node00</filter>
</nodefilters>
<nodesSelectedByDefault>true</nodesSelectedByDefault>
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<exec>sshpass -f passwordfile.txt ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ${option.username}@10.0.1.28 ls -a</exec>
</command>
</sequence>
<uuid>8b7b4feb-2bfe-45ee-9841-c7ef0a2f167c</uuid>
</job>
</joblist>
If we take the first classic ssh case the username variable is well replaced but if we take the second openssh / executor option the variable is then empty.
I need openssh because on old servers in classic ssh you can't add connection options like ciphers.


The ssh connection should not be used in the job but via the project configuration.
Thank you
project.ssh-authentication=password
project.ssh-password-storage-path=keys/passwd
project.ssh.user=${option.myusr}<node name="raspberry" description="Raspberry Pi node" tags="" hostname="10.0.1.28" osArch="armv71" osFamily="unix" osName="Linux" osVersion="4.19.75-v7+" ssh-authentication="password"/>
<joblist>
<job>
<context>
<options preserveOrder='true'>
<option name='myusr' value='pi' />
</options>
</context>
<defaultTab>nodes</defaultTab>
<description></description>
<dispatch>
<excludePrecedence>true</excludePrecedence>
<keepgoing>false</keepgoing>
<rankOrder>ascending</rankOrder>
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter>
<threadcount>1</threadcount>
</dispatch>
<executionEnabled>true</executionEnabled>
<id>46bedaa7-f9dc-4acb-b942-fc191be3bffe</id>
<loglevel>INFO</loglevel>
<name>HelloWorld</name>
<nodeFilterEditable>false</nodeFilterEditable>
<nodefilters>
<filter>name: raspberry</filter>
</nodefilters>
<nodesSelectedByDefault>true</nodesSelectedByDefault>
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<exec>echo "hello world"</exec>
</command>
</sequence>
<uuid>46bedaa7-f9dc-4acb-b942-fc191be3bffe</uuid>
</job>
</joblist>

Ok Merci Thank you
<node name="raspberry" description="Raspberry Pi node" tags="" hostname="10.0.1.28" osArch="arm64" sFamily="unix" osName="Linux" osVersion="4.19.75-v7+" username="${option.myusr}" node-executor="ssh-exec" file-copier="ssh-copier" ssh-authentication="password" ssh-password-storage-path ="keys/passwd" ssh-options="-o ConnectTimeout=5000"/>