Hi!
The context variable name for the OsVersion
attribute is ${node.os-version}
let me share with you a job definition example:
- defaultTab: nodes
description: ''
executionEnabled: true
id: 3d0fc24a-48f5-4de6-867a-78ee74b43a1d
loglevel: INFO
name: ModelSourcePropertiesExample
nodeFilterEditable: false
plugins:
ExecutionLifecycle: null
scheduleEnabled: true
sequence:
commands:
- exec: echo "starting"
- args: ${node.os-version}
fileExtension: .sh
interpreterArgsQuoted: false
script: |+
myarch=$1
echo "Node Version: $myarch";
scriptInterpreter: /bin/bash
keepgoing: false
strategy: node-first
uuid: 3d0fc24a-48f5-4de6-867a-78ee74b43a1d
Here you can see all context variables. And here is the result.
Hope it helps!